diff --git a/pkg/snapshotters/annotations.go b/pkg/snapshotters/annotations.go index 63476376c..259f350b8 100644 --- a/pkg/snapshotters/annotations.go +++ b/pkg/snapshotters/annotations.go @@ -55,8 +55,7 @@ func AppendInfoHandlerWrapper(ref string) func(f images.Handler) images.Handler if err != nil { return nil, err } - switch desc.MediaType { - case ocispec.MediaTypeImageManifest, images.MediaTypeDockerSchema2Manifest: + if images.IsManifestType(desc.MediaType) { for i := range children { c := &children[i] if images.IsLayerType(c.MediaType) {