From 177b95c972ffc953eabb4eb6836ecd3f77b35b53 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:49:51 +0200 Subject: [PATCH] build: mark information requests as internal Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- build/build.go | 2 +- build/opt.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build/build.go b/build/build.go index 880a56433ae..d111663fa4f 100644 --- a/build/build.go +++ b/build/build.go @@ -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, diff --git a/build/opt.go b/build/opt.go index c340b99110c..b27e4c66ec4 100644 --- a/build/opt.go +++ b/build/opt.go @@ -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 }