Skip to content

Commit f83d152

Browse files
code-asherkylecarbs
authored andcommitted
Prevent extra snapshot
1 parent 9f83bc8 commit f83d152

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/executor/build.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,10 @@ func (s *stageBuilder) build() error {
350350
}
351351

352352
initSnapshotTaken := false
353-
if s.opts.SingleSnapshot || s.opts.RunV2 {
353+
// Comment out the RunV2 check since this seems to create a seemingly useless
354+
// snapshot.
355+
// https://github.com/GoogleContainerTools/kaniko/issues/2800
356+
if s.opts.SingleSnapshot /* || s.opts.RunV2 */ {
354357
if err := s.initSnapshotWithTimings(); err != nil {
355358
return err
356359
}

0 commit comments

Comments
 (0)