fix(executor/sandbox): use relative path
This commit is contained in:
parent
aa377c1046
commit
be7ed98c1b
|
@ -52,8 +52,12 @@ func convertPBCopyIn(
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
relPath, err := filepath.Rel(copyInDir, path)
|
||||||
|
if err != nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
if !info.IsDir() {
|
if !info.IsDir() {
|
||||||
copyIn[path] = stage.CmdFile{Src: &absPath}
|
copyIn[relPath] = stage.CmdFile{Src: &absPath}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user