fix: copy in dir does not overwrite copy in
All checks were successful
submodules sync / sync (push) Successful in 1m8s
build / build (push) Successful in 2m48s
build / trigger-build-image (push) Successful in 12s

This commit is contained in:
张泊明518370910136 2025-10-21 14:26:28 -07:00
parent 9321218181
commit c3e3e9a452
No known key found for this signature in database
GPG Key ID: 134DACA8458EB0E3

View File

@ -56,7 +56,8 @@ func convertPBCopyIn(
if err != nil {
return nil
}
if !info.IsDir() {
_, exists := copyIn[relPath]
if !info.IsDir() && !exists {
copyIn[relPath] = stage.CmdFile{Src: &absPath}
}
return nil