Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions build/opt.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,12 @@ func toSolveOpt(ctx context.Context, np *noderesolver.ResolvedNode, multiDriver
cmdline := strings.TrimSpace(v)
if cmdline == "" {
return nil, nil, errors.Errorf("empty BUILDKIT_SYNTAX build-arg is invalid, use --build-arg BUILDKIT_SYNTAX without '=' for optional behavior")
} else if cmdline != "dockerfile.v0" { // https://github.com/moby/buildkit/pull/6594
p := strings.SplitN(cmdline, " ", 2)
so.Frontend = "gateway.v0"
so.FrontendAttrs["source"] = p[0]
so.FrontendAttrs["cmdline"] = v
}
p := strings.SplitN(cmdline, " ", 2)
so.Frontend = "gateway.v0"
so.FrontendAttrs["source"] = p[0]
so.FrontendAttrs["cmdline"] = v
}

if v, ok := opt.BuildArgs["BUILDKIT_MULTI_PLATFORM"]; ok {
Expand Down
Loading