Skip to content

Listing available versions should exclude versions without assets #3507

@suzuki-shunsuke

Description

@suzuki-shunsuke

aqua info

$ aqua info
{
  "version": "2.43.1",
  "commit_hash": "b408b78050202cbe9ea7103c62910c612ffe30bd",
  "os": "darwin",
  "arch": "arm64",
  "pwd": "/Users/(USER)/repos/src/github.com/aquaproj/aqua-registry",
  "root_dir": "/Users/(USER)/.local/share/aquaproj-aqua",
  "env": {
    "AQUA_GLOBAL_CONFIG": ":/Users/(USER)/repos/src/github.com/aquaproj/aqua-registry/aqua-all.yaml:/Users/(USER)/repos/src/github.com/C-FO/aqua-registry/aqua-all.yaml",
    "AQUA_PROGRESS_BAR": "true",
    "GITHUB_TOKEN": "(masked)"
  },
  "config_files": [
    {
      "path": "/Users/(USER)/repos/src/github.com/aquaproj/aqua-registry/aqua.yaml"
    }
  ]
}

Overview

aqua g -s and aqua up -s lists available versions, but the list includes versions which are unavailable.

How to reproduce

Executed command and output

$ aqua g -s -l 100 yumafuu/s1m

Expected behaviour

The versions v0.2.2 and v0.2.3 are excluded because they are unavailable.

https://github.com/aquaproj/aqua-registry/blob/70066eb952882852f76ec13ee39036004fd84d96/pkgs/yumafuu/s1m/registry.yaml#L9-L10

      - version_constraint: Version in ["v0.2.2", "v0.2.3"]
        no_asset: true

Actual behaviour

aqua g -s lists v0.2.2 and v0.2.3.

  v0.0.1                                                      │ * Bump github.com/aws/aws-sdk-go-v2/config from 1.27.36 to..│
  v0.0.2                                                      │ * [add] aqua by @yumafuu in https://github.com/yumafuu/s1m..│
  v0.0.3                                                      │                                                             │
  v0.1.0                                                      │                                                             │
  v0.2.0                                                      │ **Full Changelog**: https://github.com/yumafuu/s1m/compare..│
  v0.2.1                                                      │                                                             │
  v0.2.2                                                      │                                                             │
  v0.2.3                                                      │                                                             │
  v0.2.4                                                      │                                                             │
  v0.2.5                                                      │                                                             │
  v0.2.6                                                      │                                                             │
  v1.0.1                                                      │                                                             │
> v1.0.2                                                      │                                                             │
  13/13                                                       │                                                             │
>                                                             └─────────────────────────────────────────────────────────────┘

Note

https://x.com/ponkio_o/status/1886598331398496684

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions