mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-22 10:25:04 +02:00
Merge pull request #461 from priyawadhwa/etc-bug
Only return filepath.SkipDir for directories
This commit is contained in:
@@ -147,8 +147,11 @@ func (s *Snapshotter) TakeSnapshotFS() (string, error) {
|
||||
return err
|
||||
}
|
||||
if util.IsInWhitelist(path) {
|
||||
logrus.Infof("Skipping paths under %s, as it is a whitelisted directory", path)
|
||||
return filepath.SkipDir
|
||||
if util.IsDestDir(path) {
|
||||
logrus.Infof("Skipping paths under %s, as it is a whitelisted directory", path)
|
||||
return filepath.SkipDir
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
memFs[path] = info
|
||||
|
||||
Reference in New Issue
Block a user