code review comments
This commit is contained in:
parent
b271eb8ab9
commit
bb129e9c88
|
|
@ -170,7 +170,7 @@ func (s *Snapshotter) scanFullFilesystem() ([]string, []string, error) {
|
|||
filesToAdd := []string{}
|
||||
for path := range memFs {
|
||||
if util.CheckWhitelist(path) {
|
||||
logrus.Infof("Not adding %s to layer, as it's whitelisted", path)
|
||||
logrus.Tracef("Not adding %s to layer, as it's whitelisted", path)
|
||||
continue
|
||||
}
|
||||
// Only add changed files.
|
||||
|
|
@ -183,7 +183,7 @@ func (s *Snapshotter) scanFullFilesystem() ([]string, []string, error) {
|
|||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
logrus.Debugf("Adding files %s to layer, because it was changed.", files)
|
||||
logrus.Tracef("Adding files %s to layer, because it was changed.", files)
|
||||
filesToAdd = append(filesToAdd, files...)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -719,8 +719,9 @@ func getSymlink(path string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// otiai10Cpy.Copy in case the src file is a symlink, will copy the target
|
||||
// file at destination instead of creating a symlink. See #915 for more details.
|
||||
// For cross stage dependencies kaniko must persist the referenced path so that it can be used in
|
||||
// the dependent stage. For symlinks we copy the target path because copying the symlink would
|
||||
// result in a dead link
|
||||
func CopyFileOrSymlink(src string, destDir string) error {
|
||||
destFile := filepath.Join(destDir, src)
|
||||
if fi, _ := os.Lstat(src); IsSymlink(fi) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue