diff options
| author | Jeff Carr <[email protected]> | 2024-12-02 10:43:48 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-02 10:43:48 -0600 |
| commit | c8fdd11ab62ea8f49ea860407c32c4db17633bc7 (patch) | |
| tree | aba8ba79ce7822c6613cf6e81ef63a0707044ace /findNext.go | |
| parent | e9ecf2ed7e82fafeb3c0a31ad312de2d2cde7344 (diff) | |
almost automated againv0.22.27
Diffstat (limited to 'findNext.go')
| -rw-r--r-- | findNext.go | 18 |
1 files changed, 17 insertions, 1 deletions
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 } |
