Skip to content

Commit

Permalink
Merge pull request #47694 from cpuguy83/26_oci_tar_no_platform
Browse files Browse the repository at this point in the history
[26.0] save: Remove platform from config descriptor
  • Loading branch information
vvoland committed Apr 9, 2024
2 parents 8730ccc + 61d547b commit 23e7919
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions image/tarexport/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ func (s *saveSession) save(outStream io.Writer) error {
})
}

imgPlat := imageDescr.image.Platform()

m := ocispec.Manifest{
Versioned: specs.Versioned{
SchemaVersion: 2,
Expand All @@ -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,
}
Expand Down

0 comments on commit 23e7919

Please sign in to comment.