vendor: update buildkit to 41c29fffe299

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2026-06-09 19:44:00 -07:00
parent 76703de985
commit 58a5a2cd60
211 changed files with 8218 additions and 23082 deletions
+12
View File
@@ -6,6 +6,8 @@ import (
"time"
)
var UmaskIsZero = false
// MkdirAll is forked os.MkdirAll
func MkdirAll(path string, perm os.FileMode, user Chowner, tm *time.Time) ([]string, error) {
// Fast path: if we can tell whether path is a directory or file, stop with success or error.
@@ -54,6 +56,16 @@ func MkdirAll(path string, perm os.FileMode, user Chowner, tm *time.Time) ([]str
}
return nil, err
}
// In general, this code should run with umask unset.
// At the same time, there are certain environments where we rely
// on this behavior and the umask causes the directory to be created
// with the wrong mode.
if !UmaskIsZero {
if err := os.Chmod(path, perm); err != nil {
return nil, err
}
}
createdDirs = append(createdDirs, path)
if err := Chown(path, nil, user); err != nil {