cli icon indicating copy to clipboard operation
cli copied to clipboard

Nested variables interpolation in compose files

Open gilbsgilbs opened this issue 2 years ago • 1 comments

- 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 avatar May 08 '23 10:05 gilbsgilbs

I just rebased this PR as apparently this is still an issue: https://github.com/docker/cli/issues/4265#issuecomment-2579177595 .

gilbsgilbs avatar Jan 09 '25 09:01 gilbsgilbs