diff --git a/pkg/manifests/manifests.go b/pkg/manifests/manifests.go index 775dca75a..c72dc5f5a 100644 --- a/pkg/manifests/manifests.go +++ b/pkg/manifests/manifests.go @@ -463,13 +463,22 @@ func FromBlob(manifestBytes []byte) (List, error) { func (l *list) preferOCI() bool { // If we have any data that's only in the OCI format, use that. + if l.oci.ArtifactType != "" { + return true + } + if l.oci.Subject != nil { + return true + } for _, m := range l.oci.Manifests { - if len(m.URLs) > 0 { + if m.ArtifactType != "" { return true } if len(m.Annotations) > 0 { return true } + if len(m.Data) > 0 { + return true + } } // If we have any data that's only in the Docker format, use that. for _, m := range l.docker.Manifests {