try to blow up before it's an actual problem
This commit is contained in:
parent
cae26ecb18
commit
e5fb8f6b1b
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue