fix(executor/sandbox): use relative path
All checks were successful
submodules sync / sync (push) Successful in 53s
build / build (push) Successful in 2m27s
build / trigger-build-image (push) Successful in 12s

This commit is contained in:
张泊明518370910136 2025-06-26 00:48:33 -04:00
parent aa377c1046
commit be7ed98c1b
GPG Key ID: D47306D7062CDA9D

View File

@ -52,8 +52,12 @@ func convertPBCopyIn(
if err != nil {
return nil
}
relPath, err := filepath.Rel(copyInDir, path)
if err != nil {
return nil
}
if !info.IsDir() {
copyIn[path] = stage.CmdFile{Src: &absPath}
copyIn[relPath] = stage.CmdFile{Src: &absPath}
}
return nil
})