Skip to content

Conversation

@idsulik
Copy link
Contributor

@idsulik idsulik commented Oct 29, 2025

Fixes a bug where docker compose config --no-interpolate incorrectly parsed volume specifications containing variables with default values (e.g., ${VAR:-DEFAULT}). The parser was treating colons inside variable substitutions as volume spec separators, causing paths to be truncated at the :- delimiter.
The fix adds tracking for ${...} substitution blocks to ensure colons are only treated as separators when outside of variable expressions. This correctly handles complex cases including multiple colons in defaults (${TIME:-12:30:45}), nested braces, and variables in both source and target paths.

docker/compose#13327

@idsulik idsulik requested a review from ndeloof as a code owner October 29, 2025 17:25
Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@glours glours merged commit 75fb1ab into compose-spec:main Oct 30, 2025
8 checks passed
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.

2 participants