diff options
Diffstat (limited to 'vendor/github.com/moby/buildkit/cache/remotecache/local/local.go')
-rw-r--r-- | vendor/github.com/moby/buildkit/cache/remotecache/local/local.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vendor/github.com/moby/buildkit/cache/remotecache/local/local.go b/vendor/github.com/moby/buildkit/cache/remotecache/local/local.go index 18c73364c0..a6f2052725 100644 --- a/vendor/github.com/moby/buildkit/cache/remotecache/local/local.go +++ b/vendor/github.com/moby/buildkit/cache/remotecache/local/local.go @@ -98,7 +98,16 @@ func getContentStore(ctx context.Context, sm *session.Manager, g session.Group, if err != nil { return nil, err } - return sessioncontent.NewCallerStore(caller, storeID), nil + return &unlazyProvider{sessioncontent.NewCallerStore(caller, storeID), g}, nil +} + +type unlazyProvider struct { + content.Store + s session.Group +} + +func (p *unlazyProvider) UnlazySession(desc ocispecs.Descriptor) session.Group { + return p.s } func attrsToCompression(attrs map[string]string) (*compression.Config, error) { |