From e5a0ed1149fc789160f073b36aecf7a61267bc5e Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Tue, 9 May 2023 14:23:41 +0100 Subject: [PATCH] debug: secondary client build should not reuse solve opt ref 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 79b4fd0d..f2958ba3 100644 --- a/build/result.go +++ b/build/result.go @@ -72,6 +72,8 @@ func getResultAt(ctx context.Context, c *client.Client, solveOpt client.SolveOpt resultCtxCh := make(chan *ResultContext) errCh := make(chan error) go func() { + solveOpt := solveOpt + solveOpt.Ref = "" _, err := c.Build(context.Background(), solveOpt, "buildx", func(ctx context.Context, c gateway.Client) (*gateway.Result, error) { ctx, cancel := context.WithCancel(ctx) defer cancel()