Fix crane digest for v1 and platform option (#907)
Fix crane digest for v1 and platform option (#907)

* Fix crane digest for v1 and platform option

This allows to use crane.Digest on images with a v1 schema

* Move logic after err check

* Add TODO for indexes which contain schema v1 manifests
google/go-containerregistry,google/go-containerregistry