Skip to content

Commit de2a6a7

Browse files
cli: outdated handles only latest compatible
1 parent 0b86c2e commit de2a6a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/cli/outdated/outdated.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ func (ir outdatedResult) String() string {
104104
// Based on internal/cli/core/list.go
105105
for _, p := range ir.Platforms {
106106
name := ""
107-
if latest := p.GetLatestRelease(); latest != nil {
108-
name = latest.Name
107+
if latestCompatible := p.GetLatestCompatibleRelease(); latestCompatible != nil {
108+
name = latestCompatible.Name
109109
}
110110
if p.Deprecated {
111111
name = fmt.Sprintf("[%s] %s", tr("DEPRECATED"), name)
112112
}
113-
t.AddRow(p.Id, name, p.InstalledVersion, p.LatestVersion, "", "")
113+
t.AddRow(p.Id, name, p.InstalledVersion, p.LatestCompatibleVersion, "", "")
114114
}
115115

116116
// Based on internal/cli/lib/list.go

0 commit comments

Comments
 (0)