summaryrefslogtreecommitdiff
path: root/doRelease.go
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 /doRelease.go
parentcae26ecb18db714e5f7f6b005a2a8179f368de9f (diff)
try to blow up before it's an actual problemv0.22.16
Diffstat (limited to 'doRelease.go')
-rw-r--r--doRelease.go8
1 files changed, 8 insertions, 0 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 {