mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-26 05:08:02 +08:00
vendor: github.com/moby/buildkit v0.13.0-rc2
full diff: https://github.com/moby/buildkit/compare/8e3fe35738c2...v0.13.0-rc2 Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
8
vendor/github.com/tonistiigi/fsutil/followlinks.go
generated
vendored
8
vendor/github.com/tonistiigi/fsutil/followlinks.go
generated
vendored
@@ -137,8 +137,8 @@ func (r *symlinkResolver) readSymlink(p string, allowWildcard bool) ([]string, e
|
||||
func statFile(fs FS, root string) (os.DirEntry, error) {
|
||||
var out os.DirEntry
|
||||
|
||||
root = filepath.Clean(root)
|
||||
if root == "/" || root == "." {
|
||||
root = filepath.FromSlash(filepath.Clean(root))
|
||||
if root == string(filepath.Separator) || root == "." {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -168,8 +168,8 @@ func statFile(fs FS, root string) (os.DirEntry, error) {
|
||||
func readDir(fs FS, root string) ([]os.DirEntry, error) {
|
||||
var out []os.DirEntry
|
||||
|
||||
root = filepath.Clean(root)
|
||||
if root == "/" || root == "." {
|
||||
root = filepath.FromSlash(filepath.Clean(root))
|
||||
if root == string(filepath.Separator) || root == "." {
|
||||
root = "."
|
||||
out = make([]gofs.DirEntry, 0)
|
||||
}
|
||||
|
Reference in New Issue
Block a user