diff --git a/libimage/runtime.go b/libimage/runtime.go index 95da83bb9..bb0f4f568 100644 --- a/libimage/runtime.go +++ b/libimage/runtime.go @@ -437,25 +437,27 @@ func (r *Runtime) lookupImageInDigestsAndRepoTags(name string, options *LookupIm return nil, "", fmt.Errorf("%s: %w", name, storage.ErrImageUnknown) } - digested, isDigested := named.(reference.Digested) - if isDigested { - logrus.Debug("Looking for image with matching recorded digests") - digest := digested.Digest() - for _, image := range allImages { - for _, d := range image.Digests() { - if d != digest { - continue - } - // Also make sure that the matching image fits all criteria (e.g., manifest list). - if _, err := r.lookupImageInLocalStorage(name, image.ID(), options); err != nil { - return nil, "", err - } - return image, name, nil - - } - } - return nil, "", fmt.Errorf("%s: %w", name, storage.ErrImageUnknown) - } +// FIXME +// +// digested, isDigested := named.(reference.Digested) +// if isDigested { +// logrus.Debug("Looking for image with matching recorded digests") +// digest := digested.Digest() +// for _, image := range allImages { +// for _, d := range image.Digests() { +// if d != digest { +// continue +// } +// // Also make sure that the matching image fits all criteria (e.g., manifest list). +// if _, err := r.lookupImageInLocalStorage(name, image.ID(), options); err != nil { +// return nil, "", err +// } +// return image, name, nil +// +// } +// } +// return nil, "", fmt.Errorf("%s: %w", name, storage.ErrImageUnknown) +// } if !shortnames.IsShortName(name) { return nil, "", fmt.Errorf("%s: %w", name, storage.ErrImageUnknown)