paths.build fix
build-binaries / build-binaries (pull_request) Successful in 2m18s
test-image / build-image (pull_request) Successful in 51s
test / test (pull_request) Successful in 1m30s

This commit is contained in:
2026-06-21 20:28:44 +02:00
parent 3315f8b7eb
commit 5559479755
3 changed files with 58 additions and 0 deletions
+7
View File
@@ -788,6 +788,13 @@ func (p *Project) ValidateLayout() error {
}
info, err := os.Stat(path)
if err != nil {
// An output dir that does not exist yet is fine: the builder creates
// it (MkdirAll) before writing. A bare clone must validate/build from
// a clean tree with no pre-step (R2/parity) — only a path that exists
// but is NOT a directory is a real error.
if errors.Is(err, fs.ErrNotExist) {
continue
}
failures = append(failures, fmt.Errorf("%s: %w", label, err))
continue
}