Skip to content

Commit cd61b99

Browse files
authored
Fix: unmarshal manifest failed (#1708)
Signed-off-by: tgfree <tgfree7@gmail.com>
1 parent d1a3e78 commit cd61b99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/image/save/utils.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ type ManifestList struct {
136136
}
137137

138138
type ImageManifest struct {
139-
Digest string `json:"digest"`
140-
MediaType string `json:"mediaType"`
141-
Platform v1.Platform
142-
Size int
139+
Digest string `json:"digest"`
140+
MediaType string `json:"mediaType"`
141+
Platform v1.Platform `json:"platform"`
142+
Size int `json:"size"`
143143
}
144144

145145
func getImageManifestDigest(payload []byte, plat v1.Platform) (digest.Digest, error) {

0 commit comments

Comments
 (0)