From f784c60422c715c77804f3f483d8f7c8232eda11 Mon Sep 17 00:00:00 2001 From: Ni Rui Date: Fri, 20 Jan 2023 14:03:41 +0800 Subject: [PATCH] Use `go install` instead of `go get` to install build tools in CI build script --- .ci.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci.sh b/.ci.sh index db07961d..04b63ac5 100644 --- a/.ci.sh +++ b/.ci.sh @@ -78,8 +78,8 @@ SSHWIFTY_LAST_TAG_NAME=HEAD~1 if [ "$SSHWIFTY_DEPLOY" = 'yes' ]; then echo 'Downloading compile & deploy tools ...' - [ "$(which ghr)" != '' ] || catch retry go get -v github.com/tcnksm/ghr - [ "$(which gox)" != '' ] || catch retry go get -v github.com/mitchellh/gox + [ "$(which ghr)" != '' ] || catch retry go install -v github.com/tcnksm/ghr@latest + [ "$(which gox)" != '' ] || catch retry go install -v github.com/mitchellh/gox@latest echo 'Fetching extra references from the repository ...'