diff options
Diffstat (limited to 'cleanGoSum.go')
| -rw-r--r-- | cleanGoSum.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cleanGoSum.go b/cleanGoSum.go index b032d83..dbef94a 100644 --- a/cleanGoSum.go +++ b/cleanGoSum.go @@ -28,9 +28,9 @@ func cleanGoDepsCheckOk(check *gitpb.Repo) error { return errors.New("check.GoDeps == nil") } for depRepo := range check.GoDeps.IterAll() { - found := forge.FindByNamespace(depRepo.GetGoPath()) + found := me.forge.FindByNamespace(depRepo.GetGoPath()) if found == nil { - if forge.CheckOverride(depRepo.GetGoPath()) { + if me.forge.CheckOverride(depRepo.GetGoPath()) { // skip this gopath because it's probably broken forever continue } @@ -39,20 +39,20 @@ func cleanGoDepsCheckOk(check *gitpb.Repo) error { } // log.Info("found dep", depRepo.GetGoPath()) if depRepo.GetVersion() != found.GetMasterVersion() { - check := forge.FindByNamespace(depRepo.GetGoPath()) + check := me.forge.FindByNamespace(depRepo.GetGoPath()) var ends string if check.CheckDirty() { ends = "(dirty) " } - if forge.Config.IsReadOnly(check.GetGoPath()) { + if me.forge.Config.IsReadOnly(check.GetGoPath()) { ends += "(ignoring read-only) " if argv.Verbose { log.Printf("%-48s ok error .%s. vs .%s. %s\n", depRepo.GetGoPath(), depRepo.GetVersion(), found.GetMasterVersion(), ends) } } else { - if forge.CheckOverride(depRepo.GetGoPath()) { + if me.forge.CheckOverride(depRepo.GetGoPath()) { ends += "(override) " if argv.Verbose { log.Printf("%-48s ok error .%s. vs .%s. %s\n", depRepo.GetGoPath(), @@ -159,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.FindByNamespace(gopath) + check := me.forge.FindByNamespace(gopath) if check == nil { log.Info("gopath does not really exist:", gopath) } |
