Skip to content

Commit

Permalink
Merge pull request #2416 from crazy-max/print-internal
Browse files Browse the repository at this point in the history
build: mark information requests as internal
  • Loading branch information
tonistiigi authored Apr 17, 2024
2 parents ac331d3 + 177b95c commit 3905e8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ func BuildWithResultHandler(ctx context.Context, nodes []builder.Node, opt map[s
} else {
rr, err = c.Build(ctx, *so, "buildx", buildFunc, ch)
}
if desktop.BuildBackendEnabled() && node.Driver.HistoryAPISupported(ctx) {
if !so.Internal && desktop.BuildBackendEnabled() && node.Driver.HistoryAPISupported(ctx) {
if err != nil {
return &desktop.ErrorWithBuildRef{
Ref: buildRef,
Expand Down
5 changes: 5 additions & 0 deletions build/opt.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@ func toSolveOpt(ctx context.Context, node builder.Node, multiDriver bool, opt Op
so.FrontendAttrs["ulimit"] = ulimits
}

// mark info request as internal
if opt.PrintFunc != nil {
so.Internal = true
}

return &so, releaseF, nil
}

Expand Down

0 comments on commit 3905e8c

Please sign in to comment.