mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 07:27:53 +02:00
ignore errors while deleting
This commit is contained in:
+2
-1
@@ -190,7 +190,8 @@ func DeleteFilesystem() error {
|
||||
logrus.Info("Deleting filesystem...")
|
||||
return filepath.Walk(constants.RootDir, func(path string, info os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
return errors.Wrap(err, fmt.Sprintf("walking path %s", path))
|
||||
// ignore errors when deleting.
|
||||
return nil
|
||||
}
|
||||
|
||||
if CheckWhitelist(path) {
|
||||
|
||||
Reference in New Issue
Block a user