summaryrefslogtreecommitdiff
path: root/releaseBox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-11 01:19:07 -0600
committerJeff Carr <[email protected]>2024-12-11 01:19:07 -0600
commit2d981da765c0de80070fc776b2054034b9e2a8e4 (patch)
treed9871dca8e9cec4798ce7a5e220636741cacff7b /releaseBox.go
parent20b3fa352078071aa5ef3fcaa58f120bbe331fa1 (diff)
better checking
Diffstat (limited to 'releaseBox.go')
-rw-r--r--releaseBox.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/releaseBox.go b/releaseBox.go
index 5da083f..f62e9e2 100644
--- a/releaseBox.go
+++ b/releaseBox.go
@@ -145,6 +145,10 @@ func createReleaseBox(box *gui.Node) {
ok, duration := doReleaseAll()
s := fmt.Sprint(duration)
log.Info("release returned", ok, "and ran for", s, "findCounter =", findCounter)
+ if !findOk {
+ log.Info("doRelease() immediately end something went wrong last time. findOk == false")
+ return
+ }
first := findCounter
if findCounter != 0 {
log.Info("should try thsi doRelease() loop again since findCounter =", findCounter)
@@ -152,6 +156,10 @@ func createReleaseBox(box *gui.Node) {
s := fmt.Sprint(duration)
log.Info("release returned", ok, "and ran for", s, "findCounter =", findCounter)
}
+ if !findOk {
+ log.Info("doRelease() immediately end something went wrong last time. findOk == false")
+ return
+ }
second := findCounter
log.Info("doReleaseAll() first =", first, "second =", second)
if first == 0 {
@@ -169,6 +177,10 @@ func createReleaseBox(box *gui.Node) {
log.Info("release returned", ok, "and ran for", s, "findCounter =", findCounter)
third := findCounter
log.Info("doReleaseAll() first =", first, "second =", second, "third =", third)
+ if !findOk {
+ log.Info("doRelease() immediately end something went wrong last time. findOk == false")
+ return
+ }
} else {
log.Info("doReleaseAll() first second match. something has gone terribly wrong")
log.Info("killing guireleaser is a bad idea here. it will potentially loose state")
@@ -251,6 +263,11 @@ func doReleaseAll() (bool, time.Duration) {
loop := me.repos.View.ReposSortByName()
for loop.Scan() {
loop.Repo()
+ if !findOk {
+ log.Info("doRelease() immediately end something went wrong last time. findOk == false")
+ worked = false
+ break
+ }
if doRelease() {
log.Info("doRelease() worked. findCounter =", findCounter)
} else {