Merge pull request #337 from priyawadhwa/hasher

Add Key() to LayeredMap and Snapshotter
This commit is contained in:
Tejal Desai
2018-09-11 09:29:50 -07:00
committed by GitHub
6 changed files with 157 additions and 6 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func DoBuild(opts *config.KanikoOptions) (v1.Image, error) {
if err := util.GetFSFromImage(constants.RootDir, sourceImage); err != nil {
return nil, err
}
l := snapshot.NewLayeredMap(hasher)
l := snapshot.NewLayeredMap(hasher, util.CacheHasher())
snapshotter := snapshot.NewSnapshotter(l, constants.RootDir)
// Take initial snapshot
if err := snapshotter.Init(); err != nil {