diff options
| author | Jeff Carr <[email protected]> | 2024-02-18 17:56:25 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-18 17:56:25 -0600 |
| commit | 5d0c793ae99dacf49520c6b9902130d0d40e3528 (patch) | |
| tree | c971618e88da47d19d4b2271f03fd335335d6d95 /common.go | |
| parent | dc0040f0805e7a8ab3f47ea0e5ebffb03eda2b62 (diff) | |
trying to set the target version
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -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 { |
