Merge pull request #47695 from cpuguy83/25_oci_tar_no_platform

[25.0] save: Remove platform from config descriptor
This commit is contained in:
Sebastiaan van Stijn 2024-04-09 09:46:07 +02:00 committed by GitHub
commit f42f65b464
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,
}