1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-25 19:17:01 +00:00

fix: ignore symlink errors

This commit is contained in:
Casey Lee 2020-04-22 23:48:25 -07:00
parent 9253d2102c
commit 8611e2a3d2

View file

@ -384,6 +384,10 @@ func (cr *containerReference) copyDir(dstPath string, srcPath string) common.Exe
// copy file data into tar writer
if _, err := io.Copy(tw, f); err != nil {
if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
logger.Warnf("Unable to copy link %s --> %s", fi.Name(), linkName)
err = nil
}
return err
}