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:
CrazyMax
2024-02-24 14:38:34 +01:00
parent 545a5c97c6
commit e423a67f7b
89 changed files with 1427 additions and 575 deletions

View File

@@ -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)
}