Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested variables interpolation in compose files #4268

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gilbsgilbs
Copy link

@gilbsgilbs gilbsgilbs commented May 8, 2023

- What I did

Fix nested variables interpolation in compose files which should be allowed as per compose specification.

- How I did it

Use compose-go for variables interpolation in compose files instead of the current implementation.

I've also considered copying the code from compose-go as it is very similar to the existing implementation (and was probably initially copied from this project), but I assumed it would be better to use the reference implementation. Feel free to tell me if you don't want to add this new dependency.

- How to verify it

Run the test suite with/without the fix, or use the repro described in #4265

- Description for the changelog

Fix nested variables interpolation in compose files.

- A picture of a cute animal (not mandatory but encouraged)

image

Fixes #4265

@gilbsgilbs gilbsgilbs force-pushed the nested-variables-interpolation branch from b097548 to 7080418 Compare May 8, 2023 10:38
@gilbsgilbs gilbsgilbs changed the title Nested variables interpolation Nested variables interpolation in compose files May 8, 2023
@gilbsgilbs gilbsgilbs force-pushed the nested-variables-interpolation branch 2 times, most recently from 634f872 to 2a8f9b3 Compare January 9, 2025 09:00
This allows for nested variables interpolation.

Fixes docker#4265

Signed-off-by: N. Le Roux <[email protected]>
@gilbsgilbs gilbsgilbs force-pushed the nested-variables-interpolation branch 2 times, most recently from 6e726c6 to df232bd Compare January 9, 2025 09:04
@gilbsgilbs
Copy link
Author

I just rebased this PR as apparently this is still an issue: #4265 (comment) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nested variable interpolation in compose files is not working
2 participants