-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
[aqua-installer] take inputs from stdin for sha256sum #750
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thank you for your contribution! $ uname -rvo
24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:02:41 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6030 Darwin # https://github.com/aquaproj/aqua-installer/releases/tag/v3.1.0
$ sha256sum aqua-installer
62fecc49c98bdec0bba1ff1e5c2719f116e235769e0998090a7397473ef631e9 aqua-installer
$ bash ./aqua-installer
[INFO] Installing aqua v2.37.2 for bootstrapping...
[INFO] Downloading https://github.com/aquaproj/aqua/releases/download/v2.37.2/aqua_darwin_arm64.tar.gz ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 6716k 100 6716k 0 0 4782k 0 0:00:01 0:00:01 --:--:-- 36.0M
[INFO] Verifying checksum of aqua v2.37.2 ...
aqua_darwin_arm64.tar.gz: OK
x LICENSE
x README.md
x aqua
[INFO] /var/folders/fc/1bgyy3_d3x90m_t04qbw5f8m0000gn/T/tmp.RwYeTgj3H9/aqua update-aqua
INFO[0000] download and unarchive the package aqua_version=2.37.2 env=darwin/arm64 new_version=v2.42.2 package_name=aquaproj/aqua package_version=v2.42.2 program=aqua registry=
Downloading aquaproj/aqua v2.42.2 100% |███████████████████████████████████████████████████████████████████████| (7.2/7.2 MB, 44 MB/s)
INFO[0001] verify a package with slsa-verifier aqua_version=2.37.2 env=darwin/arm64 new_version=v2.42.2 package_name=aquaproj/aqua package_version=v2.42.2 program=aqua registry=
Verified signature against tlog entry index 160522274 at URL: https://rekor.sigstore.dev/api/v1/log/entries/108e9186e8c5677af2f56649a1f83b4a04f67298136401fa8fe2876730df7396cf9a748e3537fcc4
Verified build using builder "https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@refs/tags/v2.0.0" at commit 13a9cafa216888d815fb7312f8e9a80f1f7fff56
Verifying artifact /var/folders/fc/1bgyy3_d3x90m_t04qbw5f8m0000gn/T/244477901: PASSED
PASSED: SLSA verification passed
===============================================================
[INFO] aqua is installed into /Users/shunsukesuzuki/.local/share/aquaproj-aqua/bin/aqua
[INFO] Please add the path to the environment variable "PATH"
[INFO] export PATH=${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin:$PATH
===============================================================
aqua version 2.42.2 (13a9cafa216888d815fb7312f8e9a80f1f7fff56)
$ echo $?
0 And this problem has never been reported. |
man sha256sum
$ sha256sum --version
sha256sum (GNU coreutils) 9.6
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Ulrich Drepper, Scott Miller, and David Madore. According to the man page, the current code has no problem in my laptop. |
I could reproduce the issue using BSD sha256sum. $ which sha256sum
/sbin/sha256sum
$ bash aqua-installer
[INFO] Installing aqua v2.37.2 for bootstrapping...
[INFO] Downloading https://github.com/aquaproj/aqua/releases/download/v2.37.2/aqua_darwin_arm64.tar.gz ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 6716k 100 6716k 0 0 5889k 0 0:00:01 0:00:01 --:--:-- 7774k
[INFO] Verifying checksum of aqua v2.37.2 ...
usage: sha256sum [-bctwz] [files ...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
I found
aqua-installer
failed due tosha256sum
usage errorI reproduced following version and logs are them:
WHAT
This PR fixes the above error by adding
-
to pass arguments from STDIN explicitly.And I confirmed it seems to be working well on both Linux and macOS
Linux
MacOS