mirror of
https://github.com/containers/podman.git
synced 2025-12-05 04:40:47 +08:00
update buildah and c/common to latest
also includes bumps for c/storage and c/image Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/common/pkg/manifests/manifests.go
generated
vendored
8
vendor/github.com/containers/common/pkg/manifests/manifests.go
generated
vendored
@@ -452,23 +452,23 @@ func (l *list) Serialize(mimeType string) ([]byte, error) {
|
||||
if l.preferOCI() {
|
||||
res, err = json.Marshal(&l.oci)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error marshalling OCI image index: %w", err)
|
||||
return nil, fmt.Errorf("marshalling OCI image index: %w", err)
|
||||
}
|
||||
} else {
|
||||
res, err = json.Marshal(&l.docker)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error marshalling Docker manifest list: %w", err)
|
||||
return nil, fmt.Errorf("marshalling Docker manifest list: %w", err)
|
||||
}
|
||||
}
|
||||
case v1.MediaTypeImageIndex:
|
||||
res, err = json.Marshal(&l.oci)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error marshalling OCI image index: %w", err)
|
||||
return nil, fmt.Errorf("marshalling OCI image index: %w", err)
|
||||
}
|
||||
case manifest.DockerV2ListMediaType:
|
||||
res, err = json.Marshal(&l.docker)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error marshalling Docker manifest list: %w", err)
|
||||
return nil, fmt.Errorf("marshalling Docker manifest list: %w", err)
|
||||
}
|
||||
default:
|
||||
return nil, fmt.Errorf("serializing list to type %q not implemented: %w", mimeType, ErrManifestTypeNotSupported)
|
||||
|
||||
Reference in New Issue
Block a user