@@ -92,7 +92,7 @@ func NewContentStoreResolverFromTar(ctx context.Context, tarPath string) (*Conte
9292 }
9393 defer tarFile .Close ()
9494
95- // Import tar into content store
95+ // Import tar into content store
9696 log .G (ctx ).Infof ("importing tar file: %s" , tarPath )
9797 indexDesc , err := archive .ImportIndex (ctx , store , tarFile ,
9898 archive .WithImportCompression (),
@@ -119,18 +119,18 @@ func NewContentStoreResolverFromTar(ctx context.Context, tarPath string) (*Conte
119119 log .G (ctx ).Infof (" MediaType: %s" , manifest .MediaType )
120120 log .G (ctx ).Infof (" Digest: %s" , manifest .Digest )
121121 log .G (ctx ).Infof (" Size: %d bytes" , manifest .Size )
122-
122+
123123 if manifest .Platform != nil {
124124 log .G (ctx ).Infof (" Platform: %s/%s" , manifest .Platform .OS , manifest .Platform .Architecture )
125125 if manifest .Platform .Variant != "" {
126126 log .G (ctx ).Infof (" Platform Variant: %s" , manifest .Platform .Variant )
127127 }
128128 }
129-
129+
130130 if manifest .ArtifactType != "" {
131131 log .G (ctx ).Infof (" ArtifactType: %s" , manifest .ArtifactType )
132132 }
133-
133+
134134 if manifest .Annotations != nil && len (manifest .Annotations ) > 0 {
135135 log .G (ctx ).Infof (" Annotations:" )
136136 for key , value := range manifest .Annotations {
@@ -144,10 +144,10 @@ func NewContentStoreResolverFromTar(ctx context.Context, tarPath string) (*Conte
144144 continue
145145 }
146146
147- // Check if this is an image index (multi-arch)
147+ // Check if this is an image index (multi-arch)
148148 if manifest .MediaType == v1 .MediaTypeImageIndex || manifest .MediaType == "application/vnd.docker.distribution.manifest.list.v2+json" {
149149 log .G (ctx ).Infof (" 📁 FOUND IMAGE INDEX: Importing as-is for multi-arch conversion" )
150-
150+
151151 // Import the index itself - let the builder handle platform traversal
152152 ref := fmt .Sprintf ("imported:%s" , manifest .Digest .Encoded ()[:12 ])
153153 if manifest .Annotations != nil {
@@ -194,7 +194,7 @@ func (r *ContentStoreResolver) Resolve(ctx context.Context, ref string) (string,
194194
195195 // Parse reference
196196 name , tag := parseRef (ref )
197-
197+
198198 // Look up in image store
199199 image , err := r .imageStore .Get (ctx , name )
200200 if err != nil {
@@ -455,7 +455,7 @@ func isProvenanceManifest(desc v1.Descriptor) bool {
455455// by examining both the descriptor metadata and the actual manifest content
456456func isProvenanceManifestWithContent (ctx context.Context , store content.Store , desc v1.Descriptor ) bool {
457457 log .G (ctx ).Debugf (" 🔍 Checking if manifest is provenance: %s" , desc .Digest )
458-
458+
459459 // First check descriptor metadata
460460 if isProvenanceManifest (desc ) {
461461 log .G (ctx ).Debugf (" 🔍 Detected provenance via descriptor metadata" )
@@ -465,9 +465,9 @@ func isProvenanceManifestWithContent(ctx context.Context, store content.Store, d
465465 // For generic manifest media types, we need to check the content
466466 if desc .MediaType == "application/vnd.docker.distribution.manifest.v2+json" ||
467467 desc .MediaType == "application/vnd.oci.image.manifest.v1+json" {
468-
468+
469469 log .G (ctx ).Debugf (" 🔍 Generic manifest media type, reading content to inspect..." )
470-
470+
471471 // Read the manifest content
472472 manifestContent , err := content .ReadBlob (ctx , store , desc )
473473 if err != nil {
@@ -492,11 +492,11 @@ func isProvenanceManifestWithContent(ctx context.Context, store content.Store, d
492492 log .G (ctx ).Debugf (" 🔍 FOUND provenance markers in content!" )
493493 return true
494494 }
495-
495+
496496 log .G (ctx ).Debugf (" 🔍 No provenance markers found in content" )
497497 } else {
498498 log .G (ctx ).Debugf (" 🔍 Non-generic media type, skipping content inspection" )
499499 }
500500
501501 return false
502- }
502+ }
0 commit comments