Fix bug in copy command by refactoring whitelist checks (#231)

* Fixed bug

* WIP

* fix unit tests
This commit is contained in:
priyawadhwa
2018-07-10 08:23:35 -07:00
committed by GitHub
parent a80a7ded35
commit 31b7cd3732
6 changed files with 23 additions and 31 deletions
+3
View File
@@ -230,6 +230,9 @@ func saveStageDependencies(index int, stages []instructions.Stage, buildArgs *do
if err != nil {
return err
}
if len(dependencies) == 0 {
return nil
}
// Then, create the directory they will exist in
i := strconv.Itoa(index)
dependencyDir := filepath.Join(constants.KanikoDir, i)