diff options
| author | Jeff Carr <[email protected]> | 2024-12-02 08:45:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-02 08:45:13 -0600 |
| commit | e9ecf2ed7e82fafeb3c0a31ad312de2d2cde7344 (patch) | |
| tree | cddcfac1a101988e31bdfbe42d18102418e85792 /doRelease.go | |
| parent | 1c8815685b1a12e6d9856ef90b6c8d7f243c0744 (diff) | |
man this doesn't work right
Diffstat (limited to 'doRelease.go')
| -rw-r--r-- | doRelease.go | 11 |
1 files changed, 8 insertions, 3 deletions
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 |
