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

install.sh generates an incorrect download URL (wrong arch) & fails #83

Closed
gerhard opened this issue Aug 18, 2023 · 0 comments · Fixed by #85
Closed

install.sh generates an incorrect download URL (wrong arch) & fails #83

gerhard opened this issue Aug 18, 2023 · 0 comments · Fixed by #85

Comments

@gerhard
Copy link

gerhard commented Aug 18, 2023

curl -sfLo install.sh https://raw.githubusercontent.com/aweris/gale/main/hack/install.sh
sh -x ./install.sh
++ curl -s https://api.github.com/repos/aweris/gale/releases/latest
++ grep '"tag_name":'
++ sed -E 's/.*"([^"]+)".*/\1/'
+ RELEASE=v0.0.4
+ GALE_VERSION=v0.0.4
+ BIN_DIR=.
+ main
+ local os
++ uname -s
++ tr '[:upper:]' '[:lower:]'
+ os=linux
+ local arch
++ uname -m
++ tr '[:upper:]' '[:lower:]'
+ arch=x86_64
+ [[ -z v0.0.4 ]]
+ install_gale v0.0.4 linux x86_64
+ local version=v0.0.4
+ local os=linux
+ local arch=x86_64
+ local file_name=gale_v0.0.4_linux_x86_64.tar.gz
+ local download_url=https://github.com/aweris/gale/releases/download/v0.0.4/gale_v0.0.4_linux_x86_64.tar.gz
+ echo 'Downloading https://github.com/aweris/gale/releases/download/v0.0.4/gale_v0.0.4_linux_x86_64.tar.gz'
Downloading https://github.com/aweris/gale/releases/download/v0.0.4/gale_v0.0.4_linux_x86_64.tar.gz
+ curl -sL https://github.com/aweris/gale/releases/download/v0.0.4/gale_v0.0.4_linux_x86_64.tar.gz
+ tar xz -C .

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
+ echo 'Installed gale v0.0.4 to .'
Installed gale v0.0.4 to .
+ ./gale version
./install.sh: line 20: ./gale: Is a directory
+ echo Done.
Done.

URL in the script is set to https://github.com/aweris/gale/releases/download/v0.0.4/gale_v0.0.4_linux_x86_64.tar.gz

It should be https://github.com/aweris/gale/releases/download/v0.0.4/gale_v0.0.4_linux_amd64.tar.gz, as per https://github.com/aweris/gale/releases/tag/v0.0.4

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

Successfully merging a pull request may close this issue.

1 participant