From 1ee17933f79b1209bffa095d3b2146bb3e0df5fd Mon Sep 17 00:00:00 2001 From: Patrik Egyed Date: Thu, 4 Nov 2021 13:20:44 +0100 Subject: [PATCH] build(Make): fixed GoReleaser install Broke on CI when releasing a new stable version. https://app.circleci.com/pipelines/github/banzaicloud/banzai-cli/1501/workflows/f1c04f5d-a262-480d-bbed-423e6a177c0e/jobs/2652 Fixed by replacing the deprecated GoReleaser install script. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d40d0abc..45d71739 100644 --- a/Makefile +++ b/Makefile @@ -158,9 +158,12 @@ generate-telescopes-client: ## Generate client from Telescopes OpenAPI spec bin/goreleaser: bin/goreleaser-${GORELEASER_VERSION} @ln -sf goreleaser-${GORELEASER_VERSION} bin/goreleaser + +# Note: removing the last line of the script because we install and run +# goreleaser in 2 separate steps, the last line is the execution line. bin/goreleaser-${GORELEASER_VERSION}: @mkdir -p bin - curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | bash -s -- -b ./bin/ v${GORELEASER_VERSION} + curl -sfL https://git.io/goreleaser | sed '$$ d' | TMPDIR=./bin VERSION=v${GORELEASER_VERSION} bash @mv bin/goreleaser $@ .PHONY: release