Merge pull request #47661 from cpuguy83/oci_tar_no_platform

save: Remove platform from config descriptor
This commit is contained in:
Tianon Gravi 2024-04-05 15:38:30 -07:00 committed by GitHub
commit 3b81ca4969
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -223,8 +223,6 @@ func (s *saveSession) save(outStream io.Writer) error {
})
}
imgPlat := imageDescr.image.Platform()
m := ocispec.Manifest{
Versioned: specs.Versioned{
SchemaVersion: 2,
@ -234,7 +232,6 @@ func (s *saveSession) save(outStream io.Writer) error {
MediaType: ocispec.MediaTypeImageConfig,
Digest: digest.Digest(imageDescr.image.ID()),
Size: int64(len(imageDescr.image.RawJSON())),
Platform: &imgPlat,
},
Layers: foreign,
}