flip the flag

This commit is contained in:
Tejal Desai
2020-05-01 23:41:06 -07:00
parent 7d32139a13
commit 75864d5c85
5 changed files with 5 additions and 19 deletions
+3 -1
View File
@@ -318,6 +318,7 @@ func (s *stageBuilder) build() error {
}
initSnapshotTaken := false
layer := 0
cacheGroup := errgroup.Group{}
for index, command := range s.cmds {
@@ -370,7 +371,8 @@ func (s *stageBuilder) build() error {
if !s.shouldTakeSnapshot(index, files, command.ProvidesFilesToSnapshot()) {
continue
}
layer++
logrus.Infof(fmt.Sprintf("%d", layer))
if isCacheCommand {
v := command.(commands.Cached)
layer := v.Layer()