buildah/manifests
Nalin Dahyabhai d981536c3d manifest push --format: force an image type, not a list type
The image library's image copying API expects the type of a single image
in the options structure's ForceManifestMIMEType field, and it infers
the corresponding list type when it's copying multiple images.

Previously, though, we were passing in a list type, which was also being
used as the target type for converting single images, which would fail.
Switch to passing in the single-image type instead, and infer the single
type in our internal API if a consumer passes us a list type.

This makes it easier to notice that we force v2s1 images to be converted
to v2s2 images when we push them as part of a list, even if the registry
doesn't reject v2s1 images.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2020-02-17 17:49:10 -05:00
..
copy.go manifests: add the module 2019-10-28 15:15:35 +00:00
manifests.go manifest push --format: force an image type, not a list type 2020-02-17 17:49:10 -05:00
manifests_test.go manifests: unit test fix 2020-01-26 18:11:22 +00:00