diff options
| author | Jeff Carr <[email protected]> | 2024-12-10 01:47:45 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-10 01:47:45 -0600 |
| commit | 20b3fa352078071aa5ef3fcaa58f120bbe331fa1 (patch) | |
| tree | d94157e568587b104f89042a9fa017a050f7f4e3 /releaseBox.go | |
| parent | dcf18c2b7aee765349167138c7ca20f24617d1b9 (diff) | |
testing automation
Diffstat (limited to 'releaseBox.go')
| -rw-r--r-- | releaseBox.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/releaseBox.go b/releaseBox.go index 4020207..5da083f 100644 --- a/releaseBox.go +++ b/releaseBox.go @@ -154,6 +154,33 @@ func createReleaseBox(box *gui.Node) { } second := findCounter log.Info("doReleaseAll() first =", first, "second =", second) + if first == 0 { + log.Info("doReleaseAll() first is 0. everything is done") + log.Info("os.Exit(0) here safely") + buttonEnable() + return + } + + if first != second { + log.Info("doReleaseAll() first second do not match. findNext()") + findNext() + ok, duration := doReleaseAll() + s := fmt.Sprint(duration) + log.Info("release returned", ok, "and ran for", s, "findCounter =", findCounter) + third := findCounter + log.Info("doReleaseAll() first =", first, "second =", second, "third =", third) + } 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") + log.Info("the only way now is to parse 'go list' or ~/go/pkg/mod/<gopath>/go.sum files") + log.Info("to determine the last known version to make sure everything is redone correctly") + log.Info("this is the worst case. the better idea is to make sure it never fails") + log.Info("and restarts correctly where it left off. That might not be possible?") + log.Info("because 'go get @foo.com/bar@latest' appears to be global and so") + log.Info("some go.sum files might be correct when some are not actually published") + log.Info("TODO: is this true or not?") + } + buttonEnable() }) grid.NextRow() |
