Skip to content

Too-eager version/tag/release normalization #4764

Description

@nikolay

aqua info

$ aqua info
{
  "version": "2.57.2",
  "os": "darwin",
  "arch": "arm64",
  "cwd": "/Users/(USER)/Code/[REDACTED]",
  "root_dir": "/Users/(USER)/.local/share/aquaproj-aqua",
  "env": {
    "AQUA_GHTKN_ENABLED": "true",
    "AQUA_PROGRESS_BAR": "true"
  },
  "config_files": [
    {
      "path": "/Users/(USER)/Code/[REDACTED]/aqua/aqua.yaml"
    }
  ]
}

Overview

Aqua strips off v, rendering eza-community/eza broken due to the non-existent tag/release. I am posting this here as it used to work and just recently broke, so, I think it's the aqua binary issue.

How to reproduce

aqua.yaml

checksum:
  enabled: true
  require_checksum: true
  supported_envs:
  - darwin
  - linux
registries:
- name: local
  type: local
  path: registry.yaml
- type: standard
  ref: v4.505.0 # renovate: depName=aquaproj/aqua-registry
import_dir: imports
packages:
- name: eza-community/eza@0.23.4

Other related code such as local Registry

ackages: []

Executed command and output

$ aqua upc --deep --prune
May  4 10:31:32.600 INF downloading an asset to calculate the checksum program=aqua version=2.57.2 env=darwin/arm64 package_name=eza-community/eza package_version=0.23.4 package_registry=standard checksum_env=linux/amd64 asset_name=eza_x86_64-unknown-linux-musl.tar.gz
May  4 10:31:33.417 ERR update checksums program=aqua version=2.57.2 env=darwin/arm64 package_name=eza-community/eza package_version=0.23.4 package_registry=standard asset_name=eza_x86_64-unknown-linux-musl.tar.gz error="download an asset: get the GitHub Release by Tag: GET https://api.github.com/repos/eza-community/eza/releases/tags/0.23.4: 404 Not Found []"
/Users/[REDACTED]/Code/[REDACTED]/aqua/aqua-checksums.json
May  4 10:31:33.518 ERR aqua failed program=aqua version=2.57.2 env=darwin/arm64 error="it failed to update some packages' checksums"

Expected behaviour

Aqua should use the v prefix, and the update should pass.

Actual behaviour

It returns the error above.

Note

I actually have to manually insert the missing v so that the package installs properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions