Support annotations in the OCI Image Index

Empty platform structs were already supported after splitting OCI Image
Index out from Docker Manifest List.

Signed-off-by: Bracken Dawson <abdawson@gmail.com>
This commit is contained in:
Bracken Dawson
2023-03-31 14:01:15 +01:00
parent e72294d075
commit 88646f54da
3 changed files with 23 additions and 15 deletions

View File

@@ -576,7 +576,7 @@ func TestLinkPathFuncs(t *testing.T) {
}
func ociIndexFromDesriptorsWithMediaType(descriptors []ocischema.ManifestDescriptor, mediaType string) (*ocischema.DeserializedImageIndex, error) {
manifest, err := ocischema.FromDescriptors(descriptors)
manifest, err := ocischema.FromDescriptors(descriptors, nil)
if err != nil {
return nil, err
}