Bug: install.sh fails checksum verification when falling back to OpenSSL (invalid cut flag) #6587
|
The Problem Environments Impacted:
Root Cause Analysis elif is_command openssl; then
hash=$(openssl -dst openssl dgst -sha256 "$TARGET") || return 1
echo "$hash" | cut -d ' ' -f a # <--- The invalid flag
This bug has likely remained dormant for years because The Solution Why this is more robust:
Proposed Change: elif is_command openssl; then
openssl dgst -sha256 "$TARGET" | awk '{print $NF}'
See implementation example on this fork Testing I am happy to submit a Pull Request if the maintainers agree this is the right approach. |
Replies: 2 comments
|
Duplicate of #6539, #6537, #6555, #6556, #6540, #6568, #6570, #6585 Important If you are using the install script from the We recommend using https://golangci-lint.run/docs/welcome/install/local/#binaries |
|
Fresh new account (19 minutes), AI-generated content without looking for duplicate, forked golangci-lint to "fix" the thing. This is an AI agent. You are banned. Attached accounts: EDIT: A freshly created account (less than 20 minutes) has open a discussion to report a bug (why not an issue?) on, IMO, a duplicated and fixed problem (already 8 duplicates). Right after the discussion was closed, and the first account banned, a 3nd account created a new issue (AI-generated too) to complain about the ban of the first account, where a discussion may be more appropriate this time. The issue has been automatically closed, and then I deleted it, the 3rd account has been banned for violation of our community guidelines. Also, using multiple accounts to interact with a repository is against our community guidelines and the GitHub terms of service. The user behind these accounts may have had interesting things to say, but he went about it the wrong way. After that, the user jumps on the general Slack channel of the Gopher community to complain about the sanction he received. The admins of the Gopher Slack Community have deleted the message of this user. The ban was already justified, but this reaction reinforced my decision. |

Duplicate of #6539, #6537, #6555, #6556, #6540, #6568, #6570, #6585
Important
If you are using the install script from the
masterbranch:https://raw.githubusercontent.com/golangci/golangci-lint/master/install.shThis branch is not used anymore, we are using
main.We recommend using
https://golangci-lint.run/install.shas URL to install golangci-lint.https://golangci-lint.run/docs/welcome/install/local/#binaries