Skip to content

Commit e23c37f

Browse files
authored
Merge pull request #1771 from jedevc/unset-other-build-client-opt
debug: secondary client build should not reuse solve opts
2 parents c9c1303 + e5a0ed1 commit e23c37f

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)