Make kaniko abort when pkg/filesystem/resolve.go ResolvePaths() founds a symlink target that doesn't exist

This commit is contained in:
Santiago Ruano Rincón 2023-08-29 14:28:17 -03:00
parent 2c5a6d6af4
commit 0ba5010e97
No known key found for this signature in database
GPG Key ID: 62B410892A1DBA1D
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func ResolvePaths(paths []string, wl []util.IgnoreListEntry) (pathsToAdd []strin
if e != nil {
if !os.IsNotExist(e) {
logrus.Errorf("Couldn't eval %s with link %s", f, link)
return
os.Exit(1)
}
logrus.Tracef("Symlink path %s, target does not exist", f)