Skip to content

dockerfile2llb: make proxyEnvFromBuildArgs deterministic#6560

Merged
tonistiigi merged 1 commit intomoby:masterfrom
crazy-max:dockerfile-proxyargs
Mar 9, 2026
Merged

dockerfile2llb: make proxyEnvFromBuildArgs deterministic#6560
tonistiigi merged 1 commit intomoby:masterfrom
crazy-max:dockerfile-proxyargs

Conversation

@crazy-max
Copy link
Member

follow-up docker/buildx#3697

Updates proxyEnvFromBuildArgs to iterate build args in sorted key order so proxy variable selection is stable and no longer random.

isNil := true
for k, v := range args {

keys := make([]string, 0, len(args))
Copy link
Member

Choose a reason for hiding this comment

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

slices.Collect(maps.Keys(args))

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@tonistiigi tonistiigi merged commit 66d3366 into moby:master Mar 9, 2026
189 checks passed
@crazy-max crazy-max deleted the dockerfile-proxyargs branch March 9, 2026 21:49
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.

2 participants