Merge pull request #1457 from jedevc/add-hosts-length-check

build: don't set add-hosts option if empty
pull/1464/head
Tõnis Tiigi 2 years ago committed by GitHub
commit abc8121aa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -624,7 +624,9 @@ func toSolveOpt(ctx context.Context, node builder.Node, multiDriver bool, opt Op
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
so.FrontendAttrs["add-hosts"] = extraHosts if len(extraHosts) > 0 {
so.FrontendAttrs["add-hosts"] = extraHosts
}
// setup shm size // setup shm size
if opt.ShmSize.Value() > 0 { if opt.ShmSize.Value() > 0 {

Loading…
Cancel
Save