1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-06 09:20:06 +00:00

go mod changes

This commit is contained in:
Murali Paluru
2019-10-30 12:48:32 -07:00
committed by Alena Prokharchyk
parent a1ec25375c
commit 995fa72fe2
54 changed files with 7629 additions and 356 deletions

View File

@@ -205,7 +205,7 @@ func Parse(s string) (Reference, error) {
var repo repository
nameMatch := anchoredNameRegexp.FindStringSubmatch(matches[1])
if len(nameMatch) == 3 {
if nameMatch != nil && len(nameMatch) == 3 {
repo.domain = nameMatch[1]
repo.path = nameMatch[2]
} else {