diff --git a/image/descriptor.go b/image/descriptor.go index 290bcf9..0e9ce62 100644 --- a/image/descriptor.go +++ b/image/descriptor.go @@ -41,8 +41,8 @@ func listReferences(w walker) (map[string]*v1.Descriptor, error) { } for i := 0; i < len(index.Manifests); i++ { - if index.Manifests[i].Annotations["org.opencontainers.ref.name"] != "" { - refs[index.Manifests[i].Annotations["org.opencontainers.ref.name"]] = &index.Manifests[i] + if index.Manifests[i].Annotations["org.opencontainers.image.ref.name"] != "" { + refs[index.Manifests[i].Annotations["org.opencontainers.image.ref.name"]] = &index.Manifests[i] } } @@ -67,7 +67,7 @@ func findDescriptor(w walker, name string) (*v1.Descriptor, error) { } for i := 0; i < len(index.Manifests); i++ { - if index.Manifests[i].Annotations["org.opencontainers.ref.name"] == name { + if index.Manifests[i].Annotations["org.opencontainers.image.ref.name"] == name { d = index.Manifests[i] return errEOW } diff --git a/image/image_test.go b/image/image_test.go index f8d12a1..4c24662 100644 --- a/image/image_test.go +++ b/image/image_test.go @@ -101,7 +101,7 @@ var ( "size": , "digest": "", "annotations": { - "org.opencontainers.ref.name": "v1.0" + "org.opencontainers.image.ref.name": "v1.0" } }, { @@ -113,7 +113,7 @@ var ( "os": "linux" }, "annotations": { - "org.opencontainers.ref.name": "latest" + "org.opencontainers.image.ref.name": "latest" } } ],