fix: ignore symlink errors

This commit is contained in:
Casey Lee 2020-04-22 23:48:25 -07:00
parent 8c290994c1
commit c44b71c996
No known key found for this signature in database
GPG key ID: 1899120ECD0A1784

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
}