summaryrefslogtreecommitdiff
path: root/findNext.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-07 11:21:51 -0600
committerJeff Carr <[email protected]>2025-02-07 11:21:51 -0600
commit021c7774b2b66c8fe989d27f13ea5b1fd2dbd94c (patch)
tree74a10a1f3a630d567cd303740fc9d1ee4ddd0ea1 /findNext.go
parent3ceb5d0bf536f1de5035aa450f880debf82af466 (diff)
moved lots of logic to go-mod-cleanv0.23.42
Diffstat (limited to 'findNext.go')
-rw-r--r--findNext.go45
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