We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52448dc commit 94d51b9Copy full SHA for 94d51b9
internal/cli/arguments/completion.go
@@ -112,8 +112,11 @@ func GetInstallableCores() []string {
112
})
113
var res []string
114
// transform the data structure for the completion
115
- for _, i := range platforms.SearchOutput {
116
- res = append(res, i.GetMetadata().GetId()+"\t"+i.GetReleases()[i.GetLatestVersion()].GetName())
+ for _, i := range platforms.GetSearchOutput() {
+ if i.GetLatestCompatibleVersion() == "" {
117
+ continue
118
+ }
119
+ res = append(res, i.GetMetadata().GetId()+"\t"+i.GetLatestCompatibleRelease().GetName())
120
}
121
return res
122
0 commit comments