From d03c3e539b870a9775d450f6e9cc1120848fe876 Mon Sep 17 00:00:00 2001 From: unclegedd Date: Fri, 25 Aug 2023 11:13:38 -0500 Subject: [PATCH] ensure Zarf image manifests are read as blobs --- src/pkg/oci/pull.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pkg/oci/pull.go b/src/pkg/oci/pull.go index bb3a2a63f9..4dd90b03d4 100644 --- a/src/pkg/oci/pull.go +++ b/src/pkg/oci/pull.go @@ -122,6 +122,10 @@ func (o *OrasRemote) LayersFromRequestedComponents(requestedComponents []string) manifestDescriptor := helpers.Find(index.Manifests, func(layer ocispec.Descriptor) bool { return layer.Annotations[ocispec.AnnotationBaseImageName] == image }) + + // even though these are technically image manifests, we store them as Zarf blobs + manifestDescriptor.MediaType = ZarfLayerMediaTypeBlob + manifest, err := o.FetchManifest(manifestDescriptor) if err != nil { return nil, err