diff options
Diffstat (limited to 'vendor/github.com/moby/buildkit/cache/opts.go')
-rw-r--r-- | vendor/github.com/moby/buildkit/cache/opts.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/moby/buildkit/cache/opts.go b/vendor/github.com/moby/buildkit/cache/opts.go index 92df9989d9..2a287640b0 100644 --- a/vendor/github.com/moby/buildkit/cache/opts.go +++ b/vendor/github.com/moby/buildkit/cache/opts.go @@ -37,3 +37,14 @@ func (m NeedsRemoteProviderError) Error() string { } type ProgressKey struct{} + +type Unlazy session.Group + +func unlazySessionOf(opts ...RefOption) session.Group { + for _, opt := range opts { + if opt, ok := opt.(session.Group); ok { + return opt + } + } + return nil +} |