mirror of
https://github.com/moby/buildkit.git
synced 2026-08-09 01:01:08 +00:00
vendor: update fsutil to 6d9dc2ebad62
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
2
go.mod
2
go.mod
@@ -78,7 +78,7 @@ require (
|
||||
github.com/spdx/tools-golang v0.5.7
|
||||
github.com/stretchr/testify v1.11.1
|
||||
github.com/tonistiigi/dchapes-mode v0.0.0-20250318174251-73d941a28323
|
||||
github.com/tonistiigi/fsutil v0.0.0-20260609091201-0257b3308df4
|
||||
github.com/tonistiigi/fsutil v0.0.0-20260717003753-6d9dc2ebad62
|
||||
github.com/tonistiigi/go-actions-cache v0.0.0-20260120203934-54bc28c26fd2
|
||||
github.com/tonistiigi/go-archvariant v1.0.0
|
||||
github.com/tonistiigi/go-csvvalue v0.0.0-20240814133006-030d3b2625d0
|
||||
|
||||
4
go.sum
4
go.sum
@@ -584,8 +584,8 @@ github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 h1:e/5i7d4oYZ+C
|
||||
github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399/go.mod h1:LdwHTNJT99C5fTAzDz0ud328OgXz+gierycbcIx2fRs=
|
||||
github.com/tonistiigi/dchapes-mode v0.0.0-20250318174251-73d941a28323 h1:r0p7fK56l8WPequOaR3i9LBqfPtEdXIQbUTzT55iqT4=
|
||||
github.com/tonistiigi/dchapes-mode v0.0.0-20250318174251-73d941a28323/go.mod h1:3Iuxbr0P7D3zUzBMAZB+ois3h/et0shEz0qApgHYGpY=
|
||||
github.com/tonistiigi/fsutil v0.0.0-20260609091201-0257b3308df4 h1:tJkv/edHw9FXVtbHxc6cpqDttiCLNzhqI1W40fcnxIY=
|
||||
github.com/tonistiigi/fsutil v0.0.0-20260609091201-0257b3308df4/go.mod h1:K5zrLch9UaSGNiek5XHZeqZUf1zPWJHqDfLIcnpquQ4=
|
||||
github.com/tonistiigi/fsutil v0.0.0-20260717003753-6d9dc2ebad62 h1:uppBiK+tE8tYG6fc0N8VnsC7FMZcWxnXIyaQ9GcUIU8=
|
||||
github.com/tonistiigi/fsutil v0.0.0-20260717003753-6d9dc2ebad62/go.mod h1:K5zrLch9UaSGNiek5XHZeqZUf1zPWJHqDfLIcnpquQ4=
|
||||
github.com/tonistiigi/go-actions-cache v0.0.0-20260120203934-54bc28c26fd2 h1:5p6hffZeB25G4rhBc3HU6x1aIlyDELfib+/Omq+ZfQA=
|
||||
github.com/tonistiigi/go-actions-cache v0.0.0-20260120203934-54bc28c26fd2/go.mod h1:cD0SB2270BYw6HYKriFn4H6NRLhGj6ytf48YTpsm8LY=
|
||||
github.com/tonistiigi/go-archvariant v1.0.0 h1:5LC1eDWiBNflnTF1prCiX09yfNHIxDC/aukdhCdTyb0=
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/chtimes_linux.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/chtimes_linux.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package fsutil
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/chtimes_nolinux.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/chtimes_nolinux.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build !linux
|
||||
// +build !linux
|
||||
|
||||
package fsutil
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/copy/copy_darwin.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/copy/copy_darwin.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build darwin
|
||||
// +build darwin
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/copy/copy_freebsd.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/copy/copy_freebsd.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build freebsd
|
||||
// +build freebsd
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
6
vendor/github.com/tonistiigi/fsutil/copy/copy_linux.go
generated
vendored
6
vendor/github.com/tonistiigi/fsutil/copy/copy_linux.go
generated
vendored
@@ -62,7 +62,11 @@ func (c *copier) copyFileTimestamp(fi os.FileInfo, name string) error {
|
||||
}
|
||||
|
||||
st := fi.Sys().(*syscall.Stat_t)
|
||||
timespec := []unix.Timespec{unix.Timespec(StatAtime(st)), unix.Timespec(StatMtime(st))}
|
||||
atime, mtime := StatAtime(st), StatMtime(st)
|
||||
timespec := []unix.Timespec{
|
||||
{Sec: atime.Sec, Nsec: atime.Nsec},
|
||||
{Sec: mtime.Sec, Nsec: mtime.Nsec},
|
||||
}
|
||||
if err := unix.UtimesNanoAt(unix.AT_FDCWD, name, timespec, unix.AT_SYMLINK_NOFOLLOW); err != nil {
|
||||
return errors.Wrapf(err, "failed to utime %s", name)
|
||||
}
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/copy/copy_nowindows.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/copy/copy_nowindows.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/copy/copy_otherbsd.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/copy/copy_otherbsd.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build openbsd || netbsd
|
||||
// +build openbsd netbsd
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
7
vendor/github.com/tonistiigi/fsutil/copy/copy_unix.go
generated
vendored
7
vendor/github.com/tonistiigi/fsutil/copy/copy_unix.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build solaris || darwin || freebsd || openbsd || netbsd
|
||||
// +build solaris darwin freebsd openbsd netbsd
|
||||
|
||||
package fs
|
||||
|
||||
@@ -62,7 +61,11 @@ func (c *copier) copyFileTimestamp(fi os.FileInfo, name string) error {
|
||||
}
|
||||
|
||||
st := fi.Sys().(*syscall.Stat_t)
|
||||
timespec := []unix.Timespec{unix.Timespec(StatAtime(st)), unix.Timespec(StatMtime(st))}
|
||||
atime, mtime := StatAtime(st), StatMtime(st)
|
||||
timespec := []unix.Timespec{
|
||||
{Sec: atime.Sec, Nsec: atime.Nsec},
|
||||
{Sec: mtime.Sec, Nsec: mtime.Nsec},
|
||||
}
|
||||
if err := unix.UtimesNanoAt(unix.AT_FDCWD, name, timespec, unix.AT_SYMLINK_NOFOLLOW); err != nil {
|
||||
return errors.Wrapf(err, "failed to utime %s", name)
|
||||
}
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/copy/hardlink_unix.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/copy/hardlink_unix.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/copy/mkdir_unix.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/copy/mkdir_unix.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/copy/mkdir_windows.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/copy/mkdir_windows.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/copy/stat_bsd.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/copy/stat_bsd.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build darwin || freebsd || netbsd
|
||||
// +build darwin freebsd netbsd
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
18
vendor/github.com/tonistiigi/fsutil/copy/stat_openbsd.go
generated
vendored
18
vendor/github.com/tonistiigi/fsutil/copy/stat_openbsd.go
generated
vendored
@@ -1,18 +0,0 @@
|
||||
//go:build openbsd
|
||||
// +build openbsd
|
||||
|
||||
package fs
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// Returns the last-accessed time
|
||||
func StatAtime(st *syscall.Stat_t) syscall.Timespec {
|
||||
return st.Atim
|
||||
}
|
||||
|
||||
// Returns the last-modified time
|
||||
func StatMtime(st *syscall.Stat_t) syscall.Timespec {
|
||||
return st.Mtim
|
||||
}
|
||||
3
vendor/github.com/tonistiigi/fsutil/copy/stat_sysv.go
generated
vendored
3
vendor/github.com/tonistiigi/fsutil/copy/stat_sysv.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build dragonfly || linux || solaris
|
||||
// +build dragonfly linux solaris
|
||||
//go:build dragonfly || linux || openbsd || solaris
|
||||
|
||||
package fs
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/diskwriter_freebsd.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/diskwriter_freebsd.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build freebsd
|
||||
// +build freebsd
|
||||
|
||||
package fsutil
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/diskwriter_unix.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/diskwriter_unix.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package fsutil
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/diskwriter_unixnobsd.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/diskwriter_unixnobsd.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build !windows && !freebsd
|
||||
// +build !windows,!freebsd
|
||||
|
||||
package fsutil
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/diskwriter_windows.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/diskwriter_windows.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package fsutil
|
||||
|
||||
|
||||
3
vendor/github.com/tonistiigi/fsutil/docker-bake.hcl
generated
vendored
3
vendor/github.com/tonistiigi/fsutil/docker-bake.hcl
generated
vendored
@@ -15,6 +15,7 @@ target "_platforms" {
|
||||
"darwin/amd64",
|
||||
"darwin/arm64",
|
||||
"freebsd/amd64",
|
||||
"freebsd/arm",
|
||||
"freebsd/arm64",
|
||||
"linux/386",
|
||||
"linux/amd64",
|
||||
@@ -23,8 +24,10 @@ target "_platforms" {
|
||||
"linux/ppc64le",
|
||||
"linux/s390x",
|
||||
"netbsd/amd64",
|
||||
"netbsd/arm",
|
||||
"netbsd/arm64",
|
||||
"openbsd/amd64",
|
||||
"openbsd/arm",
|
||||
"openbsd/arm64",
|
||||
"windows/amd64",
|
||||
"windows/arm64"
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/followlinks_unix.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/followlinks_unix.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package fsutil
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/stat_unix.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/stat_unix.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package fsutil
|
||||
|
||||
|
||||
1
vendor/github.com/tonistiigi/fsutil/stat_windows.go
generated
vendored
1
vendor/github.com/tonistiigi/fsutil/stat_windows.go
generated
vendored
@@ -1,5 +1,4 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package fsutil
|
||||
|
||||
|
||||
2
vendor/github.com/tonistiigi/fsutil/validator.go
generated
vendored
2
vendor/github.com/tonistiigi/fsutil/validator.go
generated
vendored
@@ -38,7 +38,7 @@ func (v *Validator) HandleChange(kind ChangeKind, p string, fi os.FileInfo, err
|
||||
if dir == "." {
|
||||
dir = ""
|
||||
}
|
||||
if dir == ".." || strings.HasPrefix(p, filepath.FromSlash("../")) {
|
||||
if p == ".." || dir == ".." || strings.HasPrefix(p, filepath.FromSlash("../")) {
|
||||
return errors.WithStack(&os.PathError{Path: p, Err: syscall.EINVAL, Op: "escape check"})
|
||||
}
|
||||
|
||||
|
||||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@@ -1038,7 +1038,7 @@ github.com/theupdateframework/go-tuf/v2/metadata/updater
|
||||
# github.com/tonistiigi/dchapes-mode v0.0.0-20250318174251-73d941a28323
|
||||
## explicit; go 1.21
|
||||
github.com/tonistiigi/dchapes-mode
|
||||
# github.com/tonistiigi/fsutil v0.0.0-20260609091201-0257b3308df4
|
||||
# github.com/tonistiigi/fsutil v0.0.0-20260717003753-6d9dc2ebad62
|
||||
## explicit; go 1.25.0
|
||||
github.com/tonistiigi/fsutil
|
||||
github.com/tonistiigi/fsutil/copy
|
||||
|
||||
Reference in New Issue
Block a user