mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 17:37:46 +08:00
Merge pull request #2416 from crazy-max/print-internal
build: mark information requests as internal
This commit is contained in:
commit
3905e8cf06
@ -455,7 +455,7 @@ func BuildWithResultHandler(ctx context.Context, nodes []builder.Node, opt map[s
|
|||||||
} else {
|
} else {
|
||||||
rr, err = c.Build(ctx, *so, "buildx", buildFunc, ch)
|
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 {
|
if err != nil {
|
||||||
return &desktop.ErrorWithBuildRef{
|
return &desktop.ErrorWithBuildRef{
|
||||||
Ref: buildRef,
|
Ref: buildRef,
|
||||||
|
@ -354,6 +354,11 @@ func toSolveOpt(ctx context.Context, node builder.Node, multiDriver bool, opt Op
|
|||||||
so.FrontendAttrs["ulimit"] = ulimits
|
so.FrontendAttrs["ulimit"] = ulimits
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// mark info request as internal
|
||||||
|
if opt.PrintFunc != nil {
|
||||||
|
so.Internal = true
|
||||||
|
}
|
||||||
|
|
||||||
return &so, releaseF, nil
|
return &so, releaseF, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user