diff --git a/cmd/deptool/scanner.go b/cmd/deptool/scanner.go index 683d0679d..d9c52863f 100644 --- a/cmd/deptool/scanner.go +++ b/cmd/deptool/scanner.go @@ -90,6 +90,10 @@ func addTomlDependencies(dependencies *projectDependencies, tomlDeps map[string] sort.Strings(names) for _, pkgName := range names { crateGit := tomlDeps[pkgName] + if crateGit.Git == "" { + continue + } + current := &projectDependency{ class: depClassCargo, githubPath: crateGit.Git,