go-enum icon indicating copy to clipboard operation
go-enum copied to clipboard

Arm64 vs aarch64 - better to host a curl.sh

Open ysaakpr opened this issue 2 years ago • 5 comments

Wont work always, some linux distros are having aarch64 isntead of arm64 for the uname -m

curl -fsSL "https://github.com/abice/go-enum/releases/download/$(GO_ENUM_VERSION)/go-enum_$(uname -s)_$(uname -m)" -o go-enum

ysaakpr avatar Jul 17 '23 15:07 ysaakpr

Ok.. found usage of releaselab installs,

ysaakpr avatar Jul 17 '23 15:07 ysaakpr

curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=abice/go-enum -v=v0.5.6 -e=go-enum [1/3] Download https://github.com/abice/go-enum/releases/download/v0.5.6/go-enum_linux_arm64.tar.gz to /root/Downloads % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404

ysaakpr avatar Jul 17 '23 15:07 ysaakpr

release lab script also wont work since the file name is not normalized

ysaakpr avatar Jul 17 '23 15:07 ysaakpr

Found a similar ticket is closed without a fix..

yes.. I can tweak it.. better to do a simple naming convention as per the std, and you can add the following install line to the document for all linux and unix systems, and for windows there is a power shell command script from realease-lab which will work well.

curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=abice/go-enum -v=v0.5.6 -e=go-enum

ysaakpr avatar Jul 17 '23 15:07 ysaakpr

curl https://i.jpillora.com/abice/[email protected] | bash

This is something working way to install this repo

ysaakpr avatar Jul 17 '23 16:07 ysaakpr