mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
Merge pull request #1343 from dgageot/fix-1342
[1342] Fix assignment to nil map
This commit is contained in:
commit
398da1f916
@ -801,6 +801,9 @@ func BuildWithResultHandler(ctx context.Context, drivers []DriverInfo, opt map[s
|
||||
}
|
||||
for n, v := range gitLabels {
|
||||
if _, ok := opt.Labels[n]; !ok {
|
||||
if opt.Labels == nil {
|
||||
opt.Labels = map[string]string{}
|
||||
}
|
||||
opt.Labels[n] = v
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user