actually fail on go mod tidy failures

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-14 01:26:31 -06:00
parent 21c79d03ec
commit f408a756f9
2 changed files with 14 additions and 3 deletions

View File

@ -109,7 +109,12 @@ func doRelease() bool {
return false
}
release.current.status.CheckSafeGoSumRemake()
release.current.status.MakeRedomod()
if release.current.status.MakeRedomod() {
log.Info("Redo mod ok")
} else {
log.Info("go mod tidy not ok")
return false
}
if ok, _ := release.current.status.CheckGoSum(); ok {
log.Info("repo has go.sum requirements that are clean")
// release.current.setGoSumStatus("CLEAN")

View File

@ -221,7 +221,10 @@ func createReleaseBox(box *gui.Node) {
release.makeRedomodB = release.grid.NewButton("make redomod", func() {
buttonDisable()
release.current.status.MakeRedomod()
if release.current.status.MakeRedomod() {
} else {
log.Info("This is bad. stop here")
}
buttonEnable()
})
@ -256,7 +259,10 @@ func createReleaseBox(box *gui.Node) {
func fullDoubleCheckFix() bool {
release.current.status.CheckSafeGoSumRemake()
release.current.status.MakeRedomod()
if ! release.current.status.MakeRedomod() {
log.Info("go mod failed")
return false
}
if ok, _ := release.current.status.CheckGoSum(); ok {
log.Info("go.sum is clean")
} else {