Skip to content

Commit

Permalink
Merge pull request docker#1963 from jedevc/split-to-driver-pairs-fix-…
Browse files Browse the repository at this point in the history
…type
  • Loading branch information
jedevc authored Jul 19, 2023
2 parents ceaba70 + 1d177f0 commit 23fe029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ func resolveDriversBase(ctx context.Context, nodes []builder.Node, opt map[strin
}

undetectedPlatform := false
allPlatforms := map[string]int{}
allPlatforms := map[string]struct{}{}
for _, opt := range opt {
for _, p := range opt.Platforms {
k := platforms.Format(p)
allPlatforms[k] = -1
allPlatforms[k] = struct{}{}
if _, ok := availablePlatforms[k]; !ok {
undetectedPlatform = true
}
Expand Down

0 comments on commit 23fe029

Please sign in to comment.