aquaproj / aqua-registry

aqua's Standard Registry
https://aquaproj.github.io
MIT License
105 stars 107 forks source link

checksum verification failed gleam-lang/gleam windows/amd64 #6358

Open suzuki-shunsuke opened 2 years ago

suzuki-shunsuke commented 2 years ago

package name

e.g. suzuki-shunsuke/github-comment

aqua version

Please use the latest version.

$ aqua -v
aqua version 1.20.0-5-checksum (1aaecc0a6e536096e9cf3c56f99643b88c840081)

Environment

Overview

It failed to verify the checksum.

https://github.com/aquaproj/aqua-registry/pull/6347#issuecomment-1250581367

ERRO[0000] install the package                           aqua_version=1.20.0-5-checksum env=windows/amd64 error="parse a checksum file: no checksum is extracted" package_name=gleam-lang/gleam package_version=v0.23.0 program=aqua registry=standard
ERRO[0000] install the package                           aqua_version=1.20.0-5-checksum env=windows/amd64 error="parse a checksum file: no checksum is extracted" package_name=gleam-lang/gleam package_version=v0.22.1 program=aqua registry=standard
FATA[0000] aqua failed                                   aqua_version=1.20.0-5-checksum env=windows/amd64 error="it failed to install some packages" program=aqua
Error: Process completed with exit code 1.

How to reproduce

aqua.yaml should be not partial but complete configuration. Please remove unneeded configuration to reproduce the issue.

# aqua.yaml
checksum:
  enabled: true
registries:
  - name: standard
    type: local
    path: registry.yaml
packages:
  - name: gleam-lang/gleam@v0.23.0
  - name: gleam-lang/gleam
    version: v0.22.1

registry.yaml

packages:
  - type: github_release
    repo_owner: gleam-lang
    repo_name: gleam
    description: A friendly language for building type-safe, scalable systems
    format: tar.gz
    checksum:
      type: github_release
      asset: "{{.Asset}}.sha512"
      file_format: regexp
      algorithm: sha512
      pattern:
        checksum: ^(\b[A-Fa-f0-9]{128}\b)
        file: "^\\b[A-Fa-f0-9]{128}\\b\\s+\\*(\\S+)$"
    version_constraint: semver(">= 0.23.0")
    supported_envs:
      - darwin
      - linux
      - amd64
    asset: gleam-{{.Version}}-{{.Arch}}-{{.OS}}.{{.Format}}
    replacements:
      amd64: x86_64
      arm64: aarch64
      darwin: apple-darwin
      linux: unknown-linux-musl
      windows: pc-windows-msvc
    overrides:
      - goos: windows
        format: zip
    version_overrides:
      - version_constraint: "true"
        supported_envs:
          - darwin
          - amd64
        asset: gleam-{{.Version}}-{{.OS}}-{{.Arch}}.{{.Format}}
        replacements:
          darwin: macos
        overrides:
          - goos: darwin
            goarch: amd64
            asset: gleam-{{.Version}}-{{.OS}}.{{.Format}}
          - goos: windows
            asset: gleam-{{.Version}}-windows-64bit.{{.Format}}
            format: zip
$ aqua i

Debug Output

Please set the environment variable AQUA_LOG_LEVEL=debug and run aqua and tell us the debug output.

$ aqua i --test
    INFO[0000] download and unarchive the package            aqua_version: 1.20.0-5-checksum env=windows/amd64 exe_path="C:\\Users\\runneradmin\\AppData\\Local\\aquaproj-aqua\\pkgs\\github_release\\github.com\\suzuki-shunsuke\\ci-info\\v2.1.1\\ci-info_2.1.1_windows_amd64.tar.gz\\ci-info.exe" package=suzuki-shunsuke/ci-info package_name=suzuki-shunsuke/ci-info package_version=v2.1.1 program=aqua registry=standard
    AQUA_GOOS: 
    AQUA_GOARCH: 
INFO[0000] create a proxy file                           aqua_version=1.20.0-5-checksum env=windows/amd64 program=aqua proxy_path="C:\\Users\\runneradmin\\AppData\\Local\\aquaproj-aqua\\bin\\gleam"
INFO[0000] create a proxy file                           aqua_version=1.20.0-5-checksum env=windows/amd64 program=aqua proxy_path="C:\\Users\\runneradmin\\AppData\\Local\\aquaproj-aqua\\bat\\gleam.bat"
INFO[0000] download and unarchive the package            aqua_version=1.20.0-5-checksum env=windows/amd64 package_name=gleam-lang/gleam package_version=v0.22.1 program=aqua registry=standard
INFO[0000] download and unarchive the package            aqua_version=1.20.0-5-checksum env=windows/amd64 package_name=gleam-lang/gleam package_version=v0.23.0 program=aqua registry=standard
INFO[0000] downloading a checksum file                   aqua_version=1.20.0-5-checksum env=windows/amd64 package_name=gleam-lang/gleam package_version=v0.23.0 program=aqua registry=standard
INFO[0000] downloading a checksum file                   aqua_version=1.20.0-5-checksum env=windows/amd64 package_name=gleam-lang/gleam package_version=v0.22.1 program=aqua registry=standard
ERRO[0000] install the package                           aqua_version=1.20.0-5-checksum env=windows/amd64 error="parse a checksum file: no checksum is extracted" package_name=gleam-lang/gleam package_version=v0.23.0 program=aqua registry=standard
ERRO[0000] install the package                           aqua_version=1.20.0-5-checksum env=windows/amd64 error="parse a checksum file: no checksum is extracted" package_name=gleam-lang/gleam package_version=v0.22.1 program=aqua registry=standard
FATA[0000] aqua failed                                   aqua_version=1.20.0-5-checksum env=windows/amd64 error="it failed to install some packages" program=aqua
Error: Process completed with exit code 1.

Expected Behaviour

Command succeeded with exit code 0.

Actual Behaviour

Command failed.

Important Factoids

References

suzuki-shunsuke commented 2 years ago
suzuki-shunsuke commented 2 years ago
suzuki-shunsuke commented 1 year ago