Remove confusing message about symlinks (#381)

This commit is contained in:
Lyle Underwood 2020-10-06 10:02:37 -07:00 committed by GitHub
parent 729adec5e5
commit 3d9b82515c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -418,7 +418,7 @@ 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)
// symlinks don't need to be copied, ignore this error
err = nil
}
return err