diff --git a/Makefile b/Makefile index 4cfc0014..2a59cb90 100644 --- a/Makefile +++ b/Makefile @@ -15,9 +15,10 @@ fmt: @gofmt -w -s . @git diff --exit-code . +OS := $(shell go env GOOS | sed 's/[a-z]/\U&/') .PHONY: download-goreleaser download-goreleaser: - mkdir -p ./bin && curl -sSLf https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_Linux_x86_64.tar.gz -o - | tar --extract --gunzip --directory ./bin goreleaser + mkdir -p ./bin && curl -sSLf https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_${OS}_x86_64.tar.gz -o - | tar --extract --gunzip --directory ./bin goreleaser # CI build containers don't include goreleaser by default, # so they need to get it first, and then run the build