From 0ba5010e97866609ff74298114338791f6f68196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Ruano=20Rinc=C3=B3n?= Date: Tue, 29 Aug 2023 14:28:17 -0300 Subject: [PATCH] Make kaniko abort when pkg/filesystem/resolve.go ResolvePaths() founds a symlink target that doesn't exist --- pkg/filesystem/resolve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filesystem/resolve.go b/pkg/filesystem/resolve.go index de481e31e..28f183e82 100644 --- a/pkg/filesystem/resolve.go +++ b/pkg/filesystem/resolve.go @@ -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)