Merge pull request #1771 from jedevc/unset-other-build-client-opt

debug: secondary client build should not reuse solve opts
pull/1782/head
Justin Chadwell 2 years ago committed by GitHub
commit e23c37fa96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()

Loading…
Cancel
Save