Skip to content

Commit

Permalink
Support warming images by digest (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinking authored Apr 22, 2021
1 parent ac1fc88 commit b33f965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/warm.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ type Warmer struct {
// Warm retrieves a Docker image and populates the supplied buffer with the image content and manifest
// or returns an AlreadyCachedErr if the image is present in the cache.
func (w *Warmer) Warm(image string, opts *config.WarmerOptions) (v1.Hash, error) {
cacheRef, err := name.NewTag(image, name.WeakValidation)
cacheRef, err := name.ParseReference(image, name.WeakValidation)
if err != nil {
return v1.Hash{}, errors.Wrapf(err, "Failed to verify image name: %s", image)
}
Expand Down

0 comments on commit b33f965

Please sign in to comment.