Skip to content

Commit 182f072

Browse files
regression: all flag takes precedence above updatable in core list
1 parent 58d4164 commit 182f072

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/cli/core/list.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ func GetList(inst *rpc.Instance, all bool, updatableOnly bool) []*rpc.PlatformSu
7272

7373
result := []*rpc.PlatformSummary{}
7474
for _, platform := range platforms.GetSearchOutput() {
75-
if !all && platform.InstalledVersion == "" {
75+
// If both `all` and `updatableOnly` are set, `all` takes precedence.
76+
if all {
77+
result = append(result, platform)
78+
continue
79+
}
80+
if platform.InstalledVersion == "" {
7681
continue
7782
}
7883
if updatableOnly && platform.InstalledVersion == platform.LatestVersion {

0 commit comments

Comments
 (0)