From b33f9655eb943ae260b9de30c727c3a6cc4d08dc Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 22 Apr 2021 08:51:33 -1000 Subject: [PATCH] Support warming images by digest (#1629) --- pkg/cache/warm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cache/warm.go b/pkg/cache/warm.go index 95f12d3d6c..c7c36cda81 100644 --- a/pkg/cache/warm.go +++ b/pkg/cache/warm.go @@ -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) }