Skip to content

Commit 5b3b41a

Browse files
cli: outdated handles only latest compatible
1 parent 9fc15cc commit 5b3b41a

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
@@ -109,13 +109,13 @@ func (ir outdatedResult) String() string {
109109
// Based on internal/cli/core/list.go
110110
for _, p := range ir.Platforms {
111111
name := ""
112-
if latest := p.GetLatestRelease(); latest != nil {
113-
name = latest.Name
112+
if latestCompatible := p.GetLatestCompatibleRelease(); latestCompatible != nil {
113+
name = latestCompatible.Name
114114
}
115115
if p.Deprecated {
116116
name = fmt.Sprintf("[%s] %s", tr("DEPRECATED"), name)
117117
}
118-
t.AddRow(p.Id, name, p.InstalledVersion, p.LatestVersion, "", "")
118+
t.AddRow(p.Id, name, p.InstalledVersion, p.LatestCompatibleVersion, "", "")
119119
}
120120

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

0 commit comments

Comments
 (0)