diff options
Diffstat (limited to 'findNext.go')
| -rw-r--r-- | findNext.go | 45 |
1 files changed, 8 insertions, 37 deletions
diff --git a/findNext.go b/findNext.go index dd04781..a586c96 100644 --- a/findNext.go +++ b/findNext.go @@ -69,48 +69,19 @@ func findNext() bool { log.Info("findNext() alreadyDone. WHY IS THIS STILL CHECKING?", check.GetGoPath()) continue } - log.Info("CHECKING:", check.GetGoPath()) - // _, err := check.RunVerboseOnError([]string{"go-mod-clean", "--strict"}) - _, err := check.RunQuiet([]string{"go-mod-clean", "--smart"}) - if err != nil { - log.Info("FAILED: findNext() go-mod-clean --smart", check.GetGoPath(), err) - continue - } - - findCounter += 1 - if !check.ParseGoSum() { - log.Info("ParseGoSum() failed", check.GetGoPath()) - log.Info("ParseGoSum() failed", check.GetGoPath()) - log.Info("ParseGoSum() failed", check.GetGoPath()) - continue - } + log.Info("CHECKING START:", check.GetGoPath()) /* - if err := me.forge.CleanGoDepsCheckOk(check); err != nil { - log.Info("CleanGoDepsCheckOk() failed", check.GetGoPath(), err) - log.Info("CleanGoDepsCheckOk() failed", check.GetGoPath(), err) + findCounter += 1 + if !check.ParseGoSum() { + log.Info("ParseGoSum() failed", check.GetGoPath()) + log.Info("ParseGoSum() failed", check.GetGoPath()) + log.Info("ParseGoSum() failed", check.GetGoPath()) continue } */ - /* - if err := checkDeps(check); err != nil { - log.Info("CHECK DEPS FAILED", check.GetGoPath(), err) - log.Info("CHECK DEPS FAILED", check.GetGoPath(), err) - log.Info("CHECK DEPS FAILED", check.GetGoPath(), err) - continue - } else { - log.Info("Might be ok?", check.GetGoPath()) - } - */ - fixGodeps(check) - /* - } else { - log.Info("SKIPPING FIX", check.GetGoPath()) - log.Info("SKIPPING FIX", check.GetGoPath()) - log.Info("SKIPPING FIX", check.GetGoPath()) - } - */ + // fixGodeps(check) if err := me.forge.FinalGoDepsCheckOk(check, argv.Verbose); err != nil { // if err := me.forge.FinalGoDepsCheckOk(check, false); err != nil { @@ -138,7 +109,7 @@ func findNext() bool { } // tries to fix the go.mod and go.sum files -func fixGodeps(check *gitpb.Repo) bool { +func fixGodepsOLD(check *gitpb.Repo) bool { var good bool = true check.GoDeps = nil |
