Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
suzuki-shunsuke opened this issue Sep 19, 2022 · 3 comments
Open

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

suzuki-shunsuke opened this issue Sep 19, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@suzuki-shunsuke
Copy link
Member

package name

e.g. suzuki-shunsuke/github-comment

  • gleam-lang/gleam

aqua version

Please use the latest version.

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

Environment

  • OS (Windows, Linux, macOS, etc): windows
  • CPU Architecture (amd64, arm64, etc): amd64

Overview

It failed to verify the checksum.

#6347 (comment)

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
  • executed command and output

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
Copy link
Member Author

@suzuki-shunsuke
Copy link
Member Author

@suzuki-shunsuke
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant