Skip to content

Commit

Permalink
remove dependency.SHA256 reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Wigmore authored and paketo-bot committed Feb 13, 2023
1 parent f4b81e0 commit fb98a37
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,7 @@ func Build(

cachedChecksum, ok := bundlerLayer.Metadata[DepKey].(string)

dependencyChecksum := dependency.Checksum
//nolint Ignore SA1019, informed usage of deprecated field
if dependency.SHA256 != "" {
dependencyChecksum = dependency.SHA256
}

if ok && cargo.Checksum(dependencyChecksum).MatchString(cachedChecksum) {
if ok && cargo.Checksum(dependency.Checksum).MatchString(cachedChecksum) {
logger.Process("Reusing cached layer %s", bundlerLayer.Path)
logger.Break()

Expand Down

0 comments on commit fb98a37

Please sign in to comment.