helm / chartmuseum

helm chart repository server

Home Page:https://chartmuseum.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shasum fail when running the curl install via bash

marcofranssen opened this issue · comments

$ 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

@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

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

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

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.