DefangLabs / defang

Defang CLI and sample projects. Defang is a radically simpler way for developers to develop, deploy, and debug cloud applications.
https://defang.io
MIT License
39 stars 9 forks source link

Check for missing interpolation vars #822

Closed lionello closed 4 weeks ago

lionello commented 1 month ago

This fixes the issue @acote88 ran into when you use a var in an interpolated env. We don't check whether the var is actually added to config, so then this causes an exception during deployment (and on top of that CD keeps running forever.)

Alternatively, we could silently resolve these missing vars to empty string, which is what the shell/docker do, but I think an error avoid wasting time on wondering why something doesn't work.

Fixes https://github.com/DefangLabs/defang-mvp/issues/1148