Skip to content

Conversation

@seekskyworld
Copy link
Contributor

@seekskyworld seekskyworld commented Jan 15, 2026

Issue

fixes docker/compose#12637

Summary

  • defer default/error message interpolation until the branch is selected
  • add tests ensuring unused defaults do not log warnings

Motivation

  • avoid false "variable is not set" warnings for ${A:+...} and ${A?…} when the nested branch is not evaluated

Validation

  • go test ./template

@ndeloof ndeloof enabled auto-merge (rebase) January 16, 2026 07:35
@ndeloof ndeloof merged commit ddb94f1 into compose-spec:main Jan 16, 2026
8 checks passed
@seekskyworld seekskyworld deleted the fix/12637-lazy-interpolation branch January 19, 2026 17:06
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.

[BUG] False "variable is not set" warning when using the ${A:+} interpolation syntax

2 participants