Skip to content

Commit 181212e

Browse files
update goreleaser install method (#5783)
Signed-off-by: Bryce Palmer <[email protected]> Co-authored-by: Bryce Palmer <[email protected]>
1 parent 1780d43 commit 181212e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/scripts/fetch

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ fetch() {
3232
;;
3333
"goreleaser")
3434
ver_cmd="${DEST}/goreleaser --version 2>/dev/null | grep version | cut -d' ' -f3"
35-
fetch_cmd="curl -sSfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- -b \"${DEST}\" -d \"v${ver}\""
35+
osCap="$(uname -s)"
36+
archBase="$(uname -m)"
37+
fetch_cmd="(curl -sSfLo '${DEST}/goreleaser.tar.gz' 'https://github.com/goreleaser/goreleaser/releases/download/v${ver}/goreleaser_${osCap}_${archBase}.tar.gz' && tar -xf $DEST/goreleaser.tar.gz -C $DEST)"
3638
;;
3739
*)
3840
echo "unknown tool $tool"

0 commit comments

Comments
 (0)