We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd38624 commit 9f66e2aCopy full SHA for 9f66e2a
frontend/dockerui/config.go
@@ -78,8 +78,7 @@ type Client struct {
78
Config
79
client client.Client
80
ignoreCache []string
81
- bctx *buildContext
82
- g flightcontrol.Group[*buildContext]
+ g flightcontrol.CachedGroup[*buildContext]
83
bopts client.BuildOpts
84
85
dockerignore []byte
@@ -288,14 +287,7 @@ func (bc *Client) init() error {
288
287
289
func (bc *Client) buildContext(ctx context.Context) (*buildContext, error) {
290
return bc.g.Do(ctx, "initcontext", func(ctx context.Context) (*buildContext, error) {
291
- if bc.bctx != nil {
292
- return bc.bctx, nil
293
- }
294
- bctx, err := bc.initContext(ctx)
295
- if err == nil {
296
- bc.bctx = bctx
297
298
- return bctx, err
+ return bc.initContext(ctx)
299
})
300
}
301
0 commit comments