diff options
Diffstat (limited to 'findNext.go')
| -rw-r--r-- | findNext.go | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/findNext.go b/findNext.go index ce1fd6d..225cd65 100644 --- a/findNext.go +++ b/findNext.go @@ -39,21 +39,50 @@ func findNext() bool { log.Info("findNext() skipping dirty") continue } - log.Info("findNext()", repo.GoPath(), "is not a primative repo") if findFix { log.Info("findFix is true. running fixGoDeps()") - fixGodeps(check) + if fixGodeps(check) { + log.Info("fixGoDeps() returned true") + } else { + log.Info("fixGoDeps() returned false") + } + } findCounter += 1 + if check.Exists("go.mod") { + log.Info("go.mod exists here") + } else { + log.Info("go.mod is gone here") + } if ok, err := check.ParseGoSum(); !ok { log.Info("ParseGoSum() failed (probably repo needs go mod tidy)", err) log.Info("ParseGoSum() findFix =", findFix, "findCounter =", findCounter) + if check.Exists("go.mod") { + log.Info("go.mod exists here") + } else { + log.Info("go.mod is gone here") + } continue } + if check.Exists("go.mod") { + log.Info("go.mod exists here") + } else { + log.Info("go.mod is gone here") + } if me.forge.FinalGoDepsCheckOk(check) { setCurrentRepo(repo, "should be good to release", "pretty sure") + if check.Exists("go.mod") { + log.Info("go.mod exists here") + } else { + log.Info("go.mod is gone here") + } return true } + if check.Exists("go.mod") { + log.Info("go.mod exists here") + } else { + log.Info("go.mod is gone here") + } log.Info("findNext() got to the end. repo", repo.GoPath(), "did not work. trying to find a new one now") } if findCounter == 0 { @@ -72,7 +101,7 @@ func fixGodeps(check *gitpb.Repo) bool { var good bool = true // check if the package dependancies changed, if so, re-publish // skip primative ones - if check.GetGoPrimitive() { + if ok, _ := check.IsPrimitive(); ok { log.Info("fixGoDeps() skipping primitive", check.GoPath) return true } |
