Open AlbanBedel opened 4 days ago
Thanks for your report. What version of c/image and Skopeo is this?
Latest main commit of skopeo which use v5.31.1.
Looking at the code in copyMultipleImages
the issue stem from OCI1IndexPublic.PublicClone
which rely on OCI1IndexPublicFromComponents
so it only copy the mediaType, manifests list and annotations. So I suppose the same issue will happen with the subject field as well, or any other fields that might be added in the future.
Ah, thanks. I was looking at the single-arch image copy path.
When copying an OCI image index with the
artifactType
property set it is re-written to a new version without theartifactType
property.To reproduce:
Notice the missing
artifactType
and the removal of all extra white spaces in the copied manifest.