Skip to content

Commit e5a0ed1

Browse files
committed
debug: secondary client build should not reuse solve opt ref
Signed-off-by: Justin Chadwell <me@jedevc.com>
1 parent c9c1303 commit e5a0ed1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/result.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ func getResultAt(ctx context.Context, c *client.Client, solveOpt client.SolveOpt
7272
resultCtxCh := make(chan *ResultContext)
7373
errCh := make(chan error)
7474
go func() {
75+
solveOpt := solveOpt
76+
solveOpt.Ref = ""
7577
_, err := c.Build(context.Background(), solveOpt, "buildx", func(ctx context.Context, c gateway.Client) (*gateway.Result, error) {
7678
ctx, cancel := context.WithCancel(ctx)
7779
defer cancel()

0 commit comments

Comments
 (0)