summaryrefslogtreecommitdiff
path: root/findNext.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-19 11:51:54 -0600
committerJeff Carr <[email protected]>2025-01-19 11:51:54 -0600
commit782a2c35b1f3061ec451d5fdf479ff8d8a4b5da0 (patch)
treeb85509745c77c078eaabbe62d8f875deee8c59da /findNext.go
parent82f06c160a05bcd18dfee63d408c88a19416cb2d (diff)
try to debug the current logicv0.23.30
Diffstat (limited to 'findNext.go')
-rw-r--r--findNext.go44
1 files changed, 29 insertions, 15 deletions
diff --git a/findNext.go b/findNext.go
index 4436446..7b091b2 100644
--- a/findNext.go
+++ b/findNext.go
@@ -41,7 +41,7 @@ func findNext() bool {
log.Printf("rillFixGodeps() (%d total repos) took:%s\n", me.forge.Repos.Len(), shell.FormatDuration(time.Since(now)))
findCounter = 0
- all := me.forge.Repos.SortByFullPath()
+ all := me.found.SortByFullPath()
for all.Scan() {
check := all.Next()
@@ -63,24 +63,29 @@ func findNext() bool {
log.Info("findNext() skipping dirty")
continue
}
- /*
- if findFix {
- log.Info("findFix is true. running fixGoDeps()")
- if fixGodeps(check) {
- log.Info("fixGoDeps() returned true")
- } else {
- log.Info("fixGoDeps() returned false")
- }
-
+ if findFix {
+ log.Info("findFix is true. running fixGoDeps()")
+ if fixGodeps(check) {
+ log.Info("fixGoDeps() returned true")
+ } else {
+ log.Info("fixGoDeps() returned false")
}
- */
+
+ }
findCounter += 1
if !check.ParseGoSum() {
+ log.Info("ParseGoSum() failed")
+ log.Info("ParseGoSum() failed")
+ log.Info("ParseGoSum() failed")
continue
}
if me.forge.FinalGoDepsCheckOk(check, false) {
setCurrentRepo(check, "should be good to release", "pretty sure")
return true
+ } else {
+ log.Info("FinalGoDepsCheckOk() failed")
+ log.Info("FinalGoDepsCheckOk() failed")
+ log.Info("FinalGoDepsCheckOk() failed")
}
log.Info("findNext() got to the end. repo", check.GetGoPath(), "did not work. trying to find a new one now")
}
@@ -131,8 +136,14 @@ func runGoClean(check *gitpb.Repo, myarg string) bool {
// tries to fix the go.mod and go.sum files
func fixGodeps(check *gitpb.Repo) bool {
+ log.Info("fixGoDeps() START", check.GetGoPath())
+ log.Info("fixGoDeps() START", check.GetGoPath())
+ log.Info("fixGoDeps() START", check.GetGoPath())
var good bool = true
if !runGoClean(check, "--strict") {
+ log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath())
+ log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath())
+ log.Info("fixGoDeps() runGoClean() strict failed", check.GetGoPath())
return false
}
// skip primative ones
@@ -144,7 +155,9 @@ func fixGodeps(check *gitpb.Repo) bool {
log.Info("fixGoDeps() skipping primitive", check.GetGoPath())
return true
}
- log.Printf("current repo %s go dependancy count: %d", check.GetGoPath(), check.GoDepsLen())
+ log.Printf("current repo %s go dependancy count: %d\n", check.GetGoPath(), check.GoDepsLen())
+ log.Printf("current repo %s go dependancy count: %d\n", check.GetGoPath(), check.GoDepsLen())
+ log.Printf("current repo %s go dependancy count: %d\n", check.GetGoPath(), check.GoDepsLen())
deps := check.GoDeps.SortByGoPath()
for deps.Scan() {
depRepo := deps.Next()
@@ -160,11 +173,12 @@ func fixGodeps(check *gitpb.Repo) bool {
log.Info("not found:", depRepo.GetGoPath())
continue
}
+ log.Printf("%-48s dep ver=%10s repo ver=%10s target ver=%10s\n", found.GetGoPath(), depRepo.GetVersion(), found.GetMasterVersion(), found.GetTargetVersion())
if depRepo.GetVersion() != found.GetMasterVersion() {
- log.Printf("%-48s %10s (gitpb depRepo)", depRepo.GetGoPath(), depRepo.GetVersion())
- log.Printf("%-48s %10s (gitpb found)", found.GetGoPath(), found.GetMasterVersion())
+ log.Printf("%-48s %10s (gitpb depRepo)\n", depRepo.GetGoPath(), depRepo.GetVersion())
+ log.Printf("%-48s %10s (gitpb found)\n", found.GetGoPath(), found.GetMasterVersion())
cmd := []string{"go", "get", depRepo.GetGoPath() + "@latest"}
- check.Run(cmd)
+ check.RunVerbose(cmd)
}
}
return good