Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-zuyev committed Jun 25, 2021
1 parent e910260 commit 049c426
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/minikube/download/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ func parseImage(img string) (*name.Tag, name.Reference, error) {
if !ok {
return nil, nil, errors.Wrap(err, "new ref")
}
// ErrBadName means img contains no digest
// It happens if its value is name:tag for example.
// In this case we want to give it a second chance and try to parse it one more time using name.NewTag(img)
tag, err := name.NewTag(img)
if err != nil {
return nil, nil, errors.Wrap(err, "new ref")
Expand Down

0 comments on commit 049c426

Please sign in to comment.