mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-13 06:57:09 +08:00
vendor: update buildkit to v0.17.0-rc2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
11
vendor/github.com/containerd/continuity/fs/fstest/file_unix.go
generated
vendored
11
vendor/github.com/containerd/continuity/fs/fstest/file_unix.go
generated
vendored
@ -1,5 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
/*
|
||||
Copyright The containerd Authors.
|
||||
@ -20,9 +19,11 @@
|
||||
package fstest
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/containerd/continuity/devices"
|
||||
"github.com/containerd/continuity/sysx"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
@ -46,6 +47,14 @@ func Lchtimes(name string, atime, mtime time.Time) Applier {
|
||||
})
|
||||
}
|
||||
|
||||
// CreateDeviceFile provides creates devices Applier.
|
||||
func CreateDeviceFile(name string, mode os.FileMode, maj, min int) Applier {
|
||||
return applyFn(func(root string) error {
|
||||
fullPath := filepath.Join(root, name)
|
||||
return devices.Mknod(fullPath, mode, maj, min)
|
||||
})
|
||||
}
|
||||
|
||||
func Base() Applier {
|
||||
return applyFn(func(root string) error {
|
||||
// do nothing, as the base is not special
|
||||
|
Reference in New Issue
Block a user