You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] config --no-interpolate ineffective in a corner case #11547
This is not interpolation. When you set BAR without a value, you ask compose to just propagate your environment to container, which he did. interpolation is about replacing variables in your compose.yaml file
Activity
1arp commentedon Feb 28, 2024
This is expected behaviour as per https://github.com/compose-spec/compose-go/blob/b32c8a1e23e7b84aea4d134066a3a74023e92675/cli/options.go#L450.\
I can go ahead and update if this is a bug @ndeloof, but I don't think it is.
The latest version on the main branch of the spec follows the same behaviour https://github.com/compose-spec/compose-go/blob/07e9470486344cc0a2071851f684af595d0807d0/cli/options.go#L460-L482.
luciangabor commentedon Feb 28, 2024
Maybe here's the issue:
compose/cmd/compose/config.go
Line 143 in 5c4f337
And that breaks other cases too - like when a variable is used to point to an included/extended file ...
ndeloof commentedon Feb 28, 2024
This is not interpolation. When you set
BARwithout a value, you ask compose to just propagate your environment to container, which he did. interpolation is about replacing variables in your compose.yaml file