Skip to content

Fix variable expansion across Compose YAML - #179

Merged
Mcrich23 merged 5 commits into
mainfrom
fix/runtime-interpolation
Nov 25, 2026
Merged

Mcrich23 merged 5 commits into
mainfrom
fix/runtime-interpolation

Conversation

@Mcrich23

@Mcrich23 Mcrich23 commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Expands variables when loading the Compose file, so container names, commands, images, labels, build settings and other YAML values work consistently across commands.

Supports $VAR, ${VAR}, defaults, required values, alternatives and nested expressions. $$ stays a literal dollar, and substituted values are not expanded again. Mapping keys stay literal; list-form label and environment keys can use variables.

Keeps the environment precedence fixes from main. The README marks YAML variable expansion and process identity as supported; dotenv parsing limitations remain documented separately.

Validation: all 302 static tests across 33 suites passed, including project loading, container-name resolution, typed booleans, anchors, escaped dollars and environment precedence. No dynamic tests were added or run.

Reference: https://compose-spec.github.io/compose-spec/12-interpolation.html

@Mcrich23 Mcrich23 changed the title Resolve runtime image, user, label and build fields Fix variable expansion across Compose YAML Nov 14, 2026
@Mcrich23
Mcrich23 merged commit 505e2f1 into main Nov 25, 2026
1 check passed
@Mcrich23
Mcrich23 deleted the fix/runtime-interpolation branch November 25, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant