From d463476e7a67ec5705cb032a671bf3c3f353ea83 Mon Sep 17 00:00:00 2001 From: David Schneider Date: Fri, 8 Jan 2021 20:58:47 +0100 Subject: [PATCH] Add TODO for indexes which contain schema v1 manifests --- pkg/crane/digest.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/crane/digest.go b/pkg/crane/digest.go index 8a4358773..7fa774b6f 100644 --- a/pkg/crane/digest.go +++ b/pkg/crane/digest.go @@ -25,6 +25,8 @@ func Digest(ref string, opt ...Option) (string, error) { if !desc.MediaType.IsIndex() { return desc.Digest.String(), nil } + + // TODO: does not work for indexes which contain schema v1 manifests img, err := desc.Image() if err != nil { return "", err