From 5d0c793ae99dacf49520c6b9902130d0d40e3528 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 18 Feb 2024 17:56:25 -0600 Subject: trying to set the target version --- common.go | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'common.go') diff --git a/common.go b/common.go index 2374b33..6c5c1c2 100644 --- a/common.go +++ b/common.go @@ -2,6 +2,7 @@ package repolist import ( "go.wit.com/lib/gui/repostatus" + "go.wit.com/log" ) func (r *RepoList) Hidden() bool { @@ -88,11 +89,27 @@ func (r *Repo) LastTag() string { // because this are changing too often at this point // TODO: revisit this in 2025 or 2026 func (r *Repo) GoState() string { - return r.Status.GetGoSumStatus() + if r == nil { + log.Info("GoState() r == nil") + return "goState == nil" + } + if r.goState == nil { + log.Info("GoState() r.goState == nil") + return "goState == nil" + } + return r.goState.String() } func (r *Repo) SetGoState(s string) { - r.Status.SetGoSumStatus(s) + if r == nil { + log.Info("SetGoState() r == nil") + return + } + if r.goState == nil { + log.Info("goState == nil") + return + } + r.goState.SetText(s) } func (r *Repo) IsPerfect() bool { -- cgit v1.2.3