From b7f0b3d76384776aaeac942615c3319c5168b2fb Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Wed, 31 May 2023 15:13:56 +0100 Subject: [PATCH] build: clear exports for secondary solve request Signed-off-by: Justin Chadwell --- build/result.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/result.go b/build/result.go index 6c58db20..32836d09 100644 --- a/build/result.go +++ b/build/result.go @@ -158,6 +158,8 @@ func NewResultHandle(ctx context.Context, cc *client.Client, opt client.SolveOpt // NOTE: ideally this second connection should be lazily opened opt := opt opt.Ref = "" + opt.Exports = nil + opt.CacheExports = nil _, 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 {