summaryrefslogtreecommitdiff
path: root/findNext.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-03 22:35:19 -0600
committerJeff Carr <[email protected]>2024-12-03 22:35:19 -0600
commitd6ecd246e0a97fd75ca4b0dcf465c50157be9708 (patch)
treee4a97c9f04ef1d14e1b3f0199d05fcbaa2dcd69d /findNext.go
parent9b9df05f33e20277ff0e5e811c55d95ab56f562c (diff)
track down logic error on detecting go 'primitive' packagesv0.22.31v0.22.30v0.22.29
Diffstat (limited to 'findNext.go')
-rw-r--r--findNext.go35
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
}