mirror of
https://github.com/mudler/luet.git
synced 2025-09-14 22:29:21 +00:00
Update go.mod and vendor
This commit is contained in:
19
vendor/github.com/moby/buildkit/util/winlayers/context.go
generated
vendored
19
vendor/github.com/moby/buildkit/util/winlayers/context.go
generated
vendored
@@ -1,19 +0,0 @@
|
||||
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