Skip to content

Commit

Permalink
Add TODO for indexes which contain schema v1 manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
dvob committed Jan 8, 2021
1 parent 099e178 commit d463476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/crane/digest.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func Digest(ref string, opt ...Option) (string, error) {
if !desc.MediaType.IsIndex() {
return desc.Digest.String(), nil
}

// TODO: does not work for indexes which contain schema v1 manifests
img, err := desc.Image()
if err != nil {
return "", err
Expand Down

0 comments on commit d463476

Please sign in to comment.