Skip to content

bake: report undefined variables correctly - #4086

Open
crazy-max wants to merge 1 commit into
docker:masterfrom
crazy-max:fix-bake-undefined-variable-diagnostic
Open

crazy-max wants to merge 1 commit into
docker:masterfrom
crazy-max:fix-bake-undefined-variable-diagnostic

Conversation

@crazy-max

Copy link
Copy Markdown
Member

fixes #3158

Repeated references to an undefined variable currently cause Bake to report a variable cycle instead of identifying the unknown variable. This change checks whether a variable is defined before marking it as being resolved, which preserves genuine cycle detection while allowing HCL to produce the correct diagnostic.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max marked this pull request as ready for review September 17, 2026 10:32
@crazy-max crazy-max added this to the v0.38.0 milestone Sep 17, 2026
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.

Bake: confusing error message on multiple undefined variables

1 participant