mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-15 16:07:11 +08:00
vendor: update moby/buildkit
Update modules: go mod edit -require github.com/moby/buildkit@master go mod tidy -compat=1.17 && ./hack/update-vendor Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
10
vendor/github.com/tonistiigi/fsutil/diskwriter_unixnobsd.go
generated
vendored
10
vendor/github.com/tonistiigi/fsutil/diskwriter_unixnobsd.go
generated
vendored
@ -1,13 +1,17 @@
|
||||
//go:build !windows && !freebsd
|
||||
// +build !windows,!freebsd
|
||||
|
||||
package fsutil
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
"github.com/tonistiigi/fsutil/types"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func createSpecialFile(path string, mode uint32, stat *types.Stat) error {
|
||||
return syscall.Mknod(path, mode, int(mkdev(stat.Devmajor, stat.Devminor)))
|
||||
return unix.Mknod(path, mode, mkdev(stat.Devmajor, stat.Devminor))
|
||||
}
|
||||
|
||||
func mkdev(major int64, minor int64) int {
|
||||
return int(unix.Mkdev(uint32(major), uint32(minor)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user