aweris / gale

GitHub Action Local Executor
Apache License 2.0
143 stars 4 forks source link

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

Closed gerhard closed 1 year ago

gerhard commented 1 year ago
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