Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions pkg/buildx/bake/bake.go
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,8 @@ func toBuildOpt(t *Target, inp *Input) (*build.Options, error) {
}
args[k] = *v
}
// DEPOT: Always show platform prefix in bake logs
args["DEPOT_FORCE_PLATFORM_PREFIX"] = "true"

labels := map[string]string{}
for k, v := range t.Labels {
Expand Down
7 changes: 7 additions & 0 deletions pkg/buildx/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,13 @@ func toSolveOpt(ctx context.Context, node builder.Node, multiDriver bool, opt Op
}
}

// DEPOT: Force platform prefix in logs for bake builds
if v, ok := opt.BuildArgs["DEPOT_FORCE_PLATFORM_PREFIX"]; ok {
if v, _ := strconv.ParseBool(v); v {
so.FrontendAttrs["force-platform-prefix"] = "true"
}
}

if multiDriver {
// force creation of manifest list
so.FrontendAttrs["multi-platform"] = "true"
Expand Down
Loading