still fucking loops(?)

This commit is contained in:
Jeff Carr 2025-01-18 07:30:11 -06:00
parent 80109e7e65
commit 5bc157ec34
2 changed files with 14 additions and 4 deletions

View File

@ -52,6 +52,16 @@ func doRelease() bool {
log.Info("boo, you didn't git clone", me.current.GetGoPath())
return false
}
if alreadyDone(check) {
// means it was already published
// protects against logic errors that might result
// in an infinite loop
log.Info("doRelease() WARNING. should have never gotten here. return true. already done", check.GetGoPath())
log.Info("doRelease() WARNING. should have never gotten here. return true. already done", check.GetGoPath())
log.Info("doRelease() WARNING. should have never gotten here. return true. already done", check.GetGoPath())
log.Sleep(5)
return true
}
if !me.forge.FinalGoDepsCheckOk(check, true) {
msg := fmt.Sprint("the go.mod file is wrong. fix it here?", check.GetGoPath())
badExit(errors.New(msg))

View File

@ -159,11 +159,11 @@ func printDone() {
func alreadyDone(repo *gitpb.Repo) bool {
for _, gopath := range me.done {
log.Info("WARNING already done", repo.GetGoPath(), gopath)
log.Info("WARNING already done", repo.GetGoPath(), gopath)
log.Info("WARNING already done", repo.GetGoPath(), gopath)
// log.Info("WARNING already done", gopath, repo.GetGoPath())
// log.Info("WARNING already done", gopath, repo.GetGoPath())
// log.Info("WARNING already done", gopath, repo.GetGoPath())
if repo.GetGoPath() == gopath {
log.Info("FOUND already done", repo.GetGoPath(), gopath)
log.Info("FOUND. RETURN TRUE. already done", gopath, repo.GetGoPath())
log.Sleep(5)
return true
}