mirror of
https://github.com/mudler/luet.git
synced 2025-09-11 03:59:35 +00:00
Update gomod and vendor
This commit is contained in:
19
vendor/github.com/moby/buildkit/util/winlayers/context.go
generated
vendored
Normal file
19
vendor/github.com/moby/buildkit/util/winlayers/context.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
package winlayers
|
||||
|
||||
import "context"
|
||||
|
||||
type contextKeyT string
|
||||
|
||||
var contextKey = contextKeyT("buildkit/winlayers-on")
|
||||
|
||||
func UseWindowsLayerMode(ctx context.Context) context.Context {
|
||||
return context.WithValue(ctx, contextKey, true)
|
||||
}
|
||||
|
||||
func hasWindowsLayerMode(ctx context.Context) bool {
|
||||
v := ctx.Value(contextKey)
|
||||
if v == nil {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
Reference in New Issue
Block a user