-
Notifications
You must be signed in to change notification settings - Fork 191
Make defaults work with nested env variables ie: ${FOO:-${HOME}/bar} #496
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: GodFather <[email protected]>
Signed-off-by: GodFather <[email protected]>
👍 It would be great to get this in since I've seen this fail on some of my compose files. |
@vdemeester how's it looking on this one? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me, but I don't think it's supported on docker-compose
.. So I wonder if we should make it optional somehow 👼
It feels like they actually have a bug in their code. The default string is not interpolated correctly. If you try something like this
output:
and
output:
|
Yeah, that's why I would like to make this behavior optional (so ppl can opt-in or opt-out of the behavior to get the same as |
sweet how would I go about adding the optional flag? |
@vito-c I'm not sure yet. I would probably make |
Signed-off-by: GodFather [email protected]