Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Use s.image for cache generation as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
krumstein committed Feb 24, 2020
1 parent f91f2a9 commit c5f9855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/builder/step/from_step.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ func (s *FromStep) GetAlias() string {
func (s *FromStep) SetCacheID(ctx *context.BuildContext, seed string) error {
manifest, err := s.getManifest(ctx.ImageStore)
if err != nil {
log.Infof("Could not get manifest: %s. Using hash of from directive as cacheID.", err)
checksum := crc32.ChecksumIEEE([]byte(seed + string(s.directive)))
log.Infof("Could not get manifest: %s. Using hash of from %s as cacheID.", err, string(s.directive)+s.image)
checksum := crc32.ChecksumIEEE([]byte(seed + string(s.directive) + s.image))
s.cacheID = fmt.Sprintf("%x", checksum)
return nil
}
Expand Down

0 comments on commit c5f9855

Please sign in to comment.