From e9ecf2ed7e82fafeb3c0a31ad312de2d2cde7344 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 2 Dec 2024 08:45:13 -0600 Subject: man this doesn't work right --- doRelease.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'doRelease.go') diff --git a/doRelease.go b/doRelease.go index a7fe903..c12adb0 100644 --- a/doRelease.go +++ b/doRelease.go @@ -52,7 +52,9 @@ func doRelease() bool { log.Info("boo, you didn't git clone", me.current.GoPath()) return false } - if !me.forge.FinalGoDepsCheck(check) { + if !me.forge.FinalGoDepsCheckOk(check) { + log.Info("the go.mod file is wrong. fix it here?", check.GetGoPath()) + os.Exit(-1) return false } @@ -134,7 +136,8 @@ func doRelease() bool { } log.Info("EVERYTHING OK. RERELEASED", me.current.Name()) - // recreate go.mod / go.sum + // it's necessary to recreate the the files here + // safe to do this here. everything has been published fixGodeps(me.current) // update the values in the GUI @@ -152,6 +155,7 @@ func doRelease() bool { } // try to figure out if there is another package to update +// returns true if it finds something func doReleaseFindNext() bool { // scan for new repo if findNext() { @@ -165,7 +169,8 @@ func doReleaseFindNext() bool { log.Info("boo, you didn't git clone", me.current.GoPath()) return false } - if me.forge.FinalGoDepsCheck(check) { + if me.forge.FinalGoDepsCheckOk(check) { + // the go.sum file is ok to release return true } return false -- cgit v1.2.3