diff --git a/doRelease.go b/doRelease.go index 0b3c34d..f46fb3f 100644 --- a/doRelease.go +++ b/doRelease.go @@ -50,7 +50,7 @@ func doRelease() bool { log.Info("boo, you didn't git clone", me.current.GetGoPath()) return false } - if !me.forge.FinalGoDepsCheckOk(check) { + if !me.forge.FinalGoDepsCheckOk(check, true) { msg := fmt.Sprint("the go.mod file is wrong. fix it here?", check.GetGoPath()) badExit(errors.New(msg)) return false @@ -219,7 +219,7 @@ func doReleaseFindNext() bool { if findFix { fixGodeps(check) } - if me.forge.FinalGoDepsCheckOk(check) { + if me.forge.FinalGoDepsCheckOk(check, false) { // the go.sum file is ok to release return true } diff --git a/findNext.go b/findNext.go index c8970df..4ff430c 100644 --- a/findNext.go +++ b/findNext.go @@ -51,7 +51,7 @@ func findNext() bool { if !check.ParseGoSum() { continue } - if me.forge.FinalGoDepsCheckOk(check) { + if me.forge.FinalGoDepsCheckOk(check, false) { setCurrentRepo(check, "should be good to release", "pretty sure") return true } diff --git a/http.go b/http.go index 63acca3..609d36e 100644 --- a/http.go +++ b/http.go @@ -121,7 +121,7 @@ func testGoRepo(check *gitpb.Repo) { data, _ := os.ReadFile(filepath.Join(check.FullPath, "go.mod")) log.Info(string(data)) - if me.forge.FinalGoDepsCheckOk(check) { + if me.forge.FinalGoDepsCheckOk(check, true) { log.Info("forge.FinalGoDepsCheck(check) worked!") } else { log.Info("forge.FinalGoDepsCheck(check) failed. boo.") diff --git a/prepareRelease.go b/prepareRelease.go index 4e41b40..e4ca82f 100644 --- a/prepareRelease.go +++ b/prepareRelease.go @@ -119,7 +119,7 @@ func rePrepareRelease() { // any library version change if check.GetRepoType() == "binary" || check.GetRepoType() == "plugin" { // check if the package dependancies changed, if so, re-publish - if me.forge.FinalGoDepsCheckOk(check) { + if me.forge.FinalGoDepsCheckOk(check, false) { log.Printf("go.sum is perfect! %s\n", check.GetGoPath()) continue }