diff --git a/build/result.go b/build/result.go index 91ba9efad5c..3cd37b7b70b 100644 --- a/build/result.go +++ b/build/result.go @@ -160,6 +160,7 @@ func NewResultHandle(ctx context.Context, cc *client.Client, opt client.SolveOpt opt.Ref = "" opt.Exports = nil opt.CacheExports = nil + opt.Internal = true _, respErr = cc.Build(ctx, opt, "buildx", func(ctx context.Context, c gateway.Client) (*gateway.Result, error) { res, err := evalDefinition(ctx, c, def) if err != nil {