Skip to content

bake: normalize named context keys - #4090

Open
crazy-max wants to merge 1 commit into
docker:masterfrom
crazy-max:fix-bake-context-normalization
Open

crazy-max wants to merge 1 commit into
docker:masterfrom
crazy-max:fix-bake-context-normalization

Conversation

@crazy-max

Copy link
Copy Markdown
Member

fixes #2328

Bake now normalizes named context keys in the same way as docker buildx build --build-context and the Dockerfile frontend. Contexts such as library/golang and docker.io/library/golang therefore resolve correctly when referenced by FROM or COPY --from. Ambiguous keys that normalize to the same name produce a deterministic error instead of selecting an arbitrary value.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max force-pushed the fix-bake-context-normalization branch from e94c402 to adc30fa Compare September 17, 2026 15:22
@crazy-max crazy-max added this to the v0.38.0 milestone Sep 17, 2026
@crazy-max
crazy-max marked this pull request as ready for review September 17, 2026 15:26
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.

Unable to use library/* as build context and override it from bake files

1 participant