Skip to content

Commit

Permalink
check: be able to complain about both diff digests and sizes
Browse files Browse the repository at this point in the history
When we're comparing a layer's regenerated diff against the one that was
used to initialize it, don't stop at just complaining about the digest
if the length is also coming up wrong.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
  • Loading branch information
nalind committed Jun 13, 2023
1 parent 79b8f94 commit faf436d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions check.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ func (s *store) Check(options *CheckOptions) (CheckReport, error) {
} else {
report.ROLayers[id] = append(report.ROLayers[id], err)
}
return
}
if layer.UncompressedSize != -1 && counter.Count != layer.UncompressedSize {
// We expected the diff to have a specific size, and
Expand All @@ -347,7 +346,6 @@ func (s *store) Check(options *CheckOptions) (CheckReport, error) {
} else {
report.ROLayers[id] = append(report.ROLayers[id], err)
}
return
}
}()
}
Expand Down

0 comments on commit faf436d

Please sign in to comment.