still fucking loops(?)
This commit is contained in:
parent
80109e7e65
commit
5bc157ec34
10
doRelease.go
10
doRelease.go
|
@ -52,6 +52,16 @@ func doRelease() bool {
|
||||||
log.Info("boo, you didn't git clone", me.current.GetGoPath())
|
log.Info("boo, you didn't git clone", me.current.GetGoPath())
|
||||||
return false
|
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) {
|
if !me.forge.FinalGoDepsCheckOk(check, true) {
|
||||||
msg := fmt.Sprint("the go.mod file is wrong. fix it here?", check.GetGoPath())
|
msg := fmt.Sprint("the go.mod file is wrong. fix it here?", check.GetGoPath())
|
||||||
badExit(errors.New(msg))
|
badExit(errors.New(msg))
|
||||||
|
|
|
@ -159,11 +159,11 @@ func printDone() {
|
||||||
|
|
||||||
func alreadyDone(repo *gitpb.Repo) bool {
|
func alreadyDone(repo *gitpb.Repo) bool {
|
||||||
for _, gopath := range me.done {
|
for _, gopath := range me.done {
|
||||||
log.Info("WARNING already done", repo.GetGoPath(), gopath)
|
// log.Info("WARNING already done", gopath, repo.GetGoPath())
|
||||||
log.Info("WARNING already done", repo.GetGoPath(), gopath)
|
// log.Info("WARNING already done", gopath, repo.GetGoPath())
|
||||||
log.Info("WARNING already done", repo.GetGoPath(), gopath)
|
// log.Info("WARNING already done", gopath, repo.GetGoPath())
|
||||||
if repo.GetGoPath() == gopath {
|
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)
|
log.Sleep(5)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue