Fork me on GitHub
#duct
<
2019-10-29
>
ccann20:10:12

is it possible to just run all the pre-init-specs for a configuration instead of exec-ing it? I just want to know if our configuration is valid

weavejester22:10:27

Unfortunately with the way specs work, that’s more difficult than it initially sounds.

weavejester22:10:15

To make it work reliably, a ref would need to pretend to adhere to a particular spec, which isn’t easily done.

weavejester22:10:40

However, you can just run a spec over the whole configuration manually if you don’t care about checking refs.

ccann15:10:40

Thanks, makes sense. I think we’ll probably stick with a depth approach where we validate the configuration statically (not checking the values of env vars and component refs) and then dynamically via pre-init-spec at runtime and when running dev and test systems.