summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-18 17:56:25 -0600
committerJeff Carr <[email protected]>2024-02-18 17:56:25 -0600
commit5d0c793ae99dacf49520c6b9902130d0d40e3528 (patch)
treec971618e88da47d19d4b2271f03fd335335d6d95 /common.go
parentdc0040f0805e7a8ab3f47ea0e5ebffb03eda2b62 (diff)
trying to set the target version
Diffstat (limited to 'common.go')
-rw-r--r--common.go21
1 files changed, 19 insertions, 2 deletions
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 {