diff --git a/dep.go b/dep.go index 3328331f..47c8c0a5 100644 --- a/dep.go +++ b/dep.go @@ -53,6 +53,10 @@ func splitDep(dep string) (string, string, string) { return match }) + if len(split) == 0 { + return "", "", "" + } + if len(split) == 1 { return split[0], "", "" }