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

Shasum fail when running the curl install via bash #651

Open
marcofranssen opened this issue Dec 23, 2022 · 4 comments
Open

Shasum fail when running the curl install via bash #651

marcofranssen opened this issue Dec 23, 2022 · 4 comments

Comments

@marcofranssen
Copy link

marcofranssen commented Dec 23, 2022

$ curl https://raw.githubusercontent.com/helm/chartmuseum/main/scripts/get-chartmuseum | bash
Downloading https://get.helm.sh/chartmuseum--linux-amd64.tar.gz
Verifying checksum... SHA sum of /tmp/chartmuseum-installer-6ohEdG/chartmuseum--linux-amd64.tar.gz does not match. Aborting.

Initially detected in this workflow https://github.com/philips-labs/helm-charts/actions/runs/3765362143/jobs/6400755178

@cbuto
Copy link
Contributor

cbuto commented Jan 4, 2023

@marcofranssen It looks like the most recent version isn't resolving correctly 🤔. I ran the script locally on my MacOS and it worked fine.

You can see the URL difference in this output Downloading https://get.helm.sh/chartmuseum-v0.15.0-darwin-amd64.tar.gz

➜  ~ curl https://raw.githubusercontent.com/helm/chartmuseum/main/scripts/get-chartmuseum | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11635  100 11635    0     0   160k      0 --:--:-- --:--:-- --:--:--  177k
Downloading https://get.helm.sh/chartmuseum-v0.15.0-darwin-amd64.tar.gz
Verifying checksum... Done.
Preparing to install chartmuseum into /usr/local/bin
chartmuseum installed into /usr/local/bin/chartmuseum

@marcofranssen
Copy link
Author

Correct. So must be issue on Linux. Anyhow for Github actions I made now a setup action which simplifies adding chartmuseum to any workflow.

https://github.com/marcofranssen/setup-chartmuseum

@cbuto
Copy link
Contributor

cbuto commented Jan 6, 2023

@marcofranssen Can you share what flavor of Linux you are using? I tested in an Ubuntu container and everything worked.

@marcofranssen
Copy link
Author

It happened all of a sudden on a GitHub actions runner.

Using ubuntu-22.04

https://github.com/philips-labs/helm-charts/blob/5cbffdfd2172ef94c2ad053cd54087b46a6f84a3/.github/workflows/helm-chart-ci.yml#LL91C18-L91C26

In my current version of the workflow I'm using my github action that does not use the bash script anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants