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 --- findNext.go | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'findNext.go') diff --git a/findNext.go b/findNext.go index c2dead1..072e60d 100644 --- a/findNext.go +++ b/findNext.go @@ -9,10 +9,14 @@ import ( "go.wit.com/lib/gui/repolist" ) +var findCounter int +var findFix bool = false + // trys to figure out if there is still something to update // todo: redo this logic as it is terrible // rename this findNext() func findNext() bool { + findCounter = 0 loop := me.repos.View.ReposSortByName() for loop.Scan() { repo := loop.Repo() @@ -46,12 +50,24 @@ func findNext() bool { log.Info("boo, you didn't git clone", repo.GoPath()) return false } + if findFix { + fixGodeps(repo) + } + findCounter += 1 if me.forge.FinalGoDepsCheckOk(check) { setCurrentRepo(repo, "should be good to release", "pretty sure") return true } } - log.Info("tried to findNext() but not sure what to do next") + if me.current == nil { + if findCounter == 0 { + log.Info("NOTHING TO UPDATE. findCounter =", findCounter) + } else { + findFix = true + log.Info("me.current is nil findCounter =", findCounter, "so set findFix =", findFix) + } + } + log.Info("tried to findNext() but not sure what to do next counter =", findCounter, "findFix =", findFix) me.release.status.SetText("ALL DONE?") return false } -- cgit v1.2.3