1
0
mirror of https://gitea.com/gitea/act synced 2026-05-01 01:27:48 +02:00

fix: ignore symlink errors

This commit is contained in:
Casey Lee
2020-04-22 23:48:25 -07:00
parent 8c290994c1
commit c44b71c996

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
}