actually fail on go mod tidy failures
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
21c79d03ec
commit
f408a756f9
|
@ -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")
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue