We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b37861 + b058214 commit 2d14b6aCopy full SHA for 2d14b6a
pkg/executor/build.go
@@ -437,7 +437,8 @@ func (s *stageBuilder) build() error {
437
// Raise Warnings for commands that are uncacheable
438
switch command.(type) {
439
case *commands.RunCommand:
440
- if len(files) == 0 {
+ fi, err := os.Stat(tarPath)
441
+ if err == nil && fi.Size() <= emptyTarSize {
442
logrus.Warn("cache-violation: RUN created an empty layer, this will cause a diff when rebuilding from cache for the first time.")
443
}
444
case *commands.WorkdirCommand:
0 commit comments