From c8fdd11ab62ea8f49ea860407c32c4db17633bc7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 2 Dec 2024 10:43:48 -0600 Subject: almost automated again --- doRelease.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doRelease.go') diff --git a/doRelease.go b/doRelease.go index c12adb0..64926af 100644 --- a/doRelease.go +++ b/doRelease.go @@ -161,6 +161,11 @@ func doReleaseFindNext() bool { if findNext() { log.Info("findNext() found something") } else { + // this means findNext() didn't find anything but there are + // still packages to release. start trying to fix the go.sum files + if findCounter != 0 { + findFix = true + } log.Info("findNext() could not find anything") return false } @@ -169,6 +174,9 @@ func doReleaseFindNext() bool { log.Info("boo, you didn't git clone", me.current.GoPath()) return false } + if findFix { + fixGodeps(me.current) + } if me.forge.FinalGoDepsCheckOk(check) { // the go.sum file is ok to release return true -- cgit v1.2.3