-
Notifications
You must be signed in to change notification settings - Fork 64
fix: shellcheck wrong curl #510
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
Conversation
Signed-off-by: Mario Fernandez <[email protected]>
2098455
to
c2a9c8a
Compare
@@ -188,8 +188,8 @@ $(SHELLCHECK) shellcheck: $(TOOLS_DIR) | |||
set -ex ;\ | |||
[[ -f $(SHELLCHECK) ]] && exit 0 ;\ | |||
cd $$(mktemp -d) ;\ | |||
OS=$(shell go env GOOS) && ARCH=$(shell go env GOARCH) && \ | |||
curl -sSLo shellcheck-stable.tar.xz "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.$$(OS).$$(ARCH).tar.xz";\ | |||
OS=$(shell go env GOOS) && ARCH=$(shell uname -m) && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that we need to change the way the ARCH var is filled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output of arch is:
ARCH=amd64
then:
https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.limux.amd64.tar.xz
and that's 404
Correct one is:
https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before was: db0b62f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: marioferh, simonpasquier The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Action publish-olm-candidate https://github.com/rhobs/observability-operator/actions/runs/9462114451/job/26065129373 is failing due an error in shellheck curl.