diff options
| -rw-r--r-- | cleanGoSum.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cleanGoSum.go b/cleanGoSum.go index 8909f38..b032d83 100644 --- a/cleanGoSum.go +++ b/cleanGoSum.go @@ -27,10 +27,8 @@ func cleanGoDepsCheckOk(check *gitpb.Repo) error { if check.GoDeps == nil { return errors.New("check.GoDeps == nil") } - all := check.GoDeps.SortByGoPath() - for all.Scan() { - depRepo := all.Next() - found := forge.FindByGoPath(depRepo.GetGoPath()) + for depRepo := range check.GoDeps.IterAll() { + found := forge.FindByNamespace(depRepo.GetGoPath()) if found == nil { if forge.CheckOverride(depRepo.GetGoPath()) { // skip this gopath because it's probably broken forever @@ -41,7 +39,7 @@ func cleanGoDepsCheckOk(check *gitpb.Repo) error { } // log.Info("found dep", depRepo.GetGoPath()) if depRepo.GetVersion() != found.GetMasterVersion() { - check := forge.FindByGoPath(depRepo.GetGoPath()) + check := forge.FindByNamespace(depRepo.GetGoPath()) var ends string if check.CheckDirty() { ends = "(dirty) " @@ -161,7 +159,7 @@ func trimGoSum(check *gitpb.Repo) error { if good[gopath] { fmt.Fprintf(newf, "%s %s\n", gopath, stuff[gopath]) fmt.Fprintf(newf, "%s %s\n", gopath, modver[gopath]) - check := forge.FindByGoPath(gopath) + check := forge.FindByNamespace(gopath) if check == nil { log.Info("gopath does not really exist:", gopath) } |
