summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-16 04:59:21 -0600
committerJeff Carr <[email protected]>2024-11-16 04:59:21 -0600
commite5fb8f6b1baae74d3aa9b969e12f1320faba2746 (patch)
tree26bf38ca21f22a50f2924f24ca48aefede9aea1d
parentcae26ecb18db714e5f7f6b005a2a8179f368de9f (diff)
try to blow up before it's an actual problemv0.22.16
-rw-r--r--doRelease.go8
-rw-r--r--releaseBox.go2
2 files changed, 9 insertions, 1 deletions
diff --git a/doRelease.go b/doRelease.go
index 17efc39..b90826d 100644
--- a/doRelease.go
+++ b/doRelease.go
@@ -27,6 +27,14 @@ func doRelease() bool {
return false
}
+ if shell.Exists("go.mod") {
+ log.Info("go.mod exists ok")
+ } else {
+ pwd, _ := os.Getwd()
+ log.Info("go.mod disappeared. need to run go mod init and go mod tidy here:", pwd)
+ return false
+ }
+
curName := me.current.Status.GetCurrentBranchName()
mName := me.current.Status.GetMasterBranchName()
if curName != mName {
diff --git a/releaseBox.go b/releaseBox.go
index 8b93d19..72c5c2b 100644
--- a/releaseBox.go
+++ b/releaseBox.go
@@ -153,7 +153,7 @@ func createReleaseBox(box *gui.Node) {
log.Info("maybe ALL DONE?")
buttonEnable()
worked = true
- break
+ os.Exit(0)
}
log.Info("doRelease() failed")
worked = false