File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -43,18 +43,32 @@ GOOS_OVERRIDE ?=
4343CGO_OVERRIDE ?= CGO_ENABLED=0
4444OUTPUT_ROOT =output/
4545
46+ ifeq ($(OS ) ,Windows_NT)
47+ HOSTOS=Windows
48+ else
49+ HOSTOS=$(shell uname)
50+ endif
51+ HOSTARCH =$(shell go env GOHOSTARCH)
52+
53+ GORELEASER_PRO_URL =https://github.com/goreleaser/goreleaser-pro/releases/latest/download/goreleaser-pro_$(HOSTOS ) _$(HOSTARCH ) .tar.gz
54+
4655.PHONY : all
4756
4857# ########################################
4958# Bootstrapping
5059# ########################################
51-
60+ TMPDIR := $(shell mktemp -d)
61+ bootstra% : GOPATH=$(shell go env GOPATH)
5262bootstra% :
5363 $Q curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH ) /bin latest
5464 $Q go install golang.org/x/vuln/cmd/govulncheck@latest
5565 $Q go install gotest.tools/gotestsum@latest
5666 $Q go install golang.org/x/tools/cmd/goimports@latest
57- $Q go install github.com/goreleaser/goreleaser@latest
67+ @echo " Installing GoReleaser Pro into $( GOPATH) /bin"
68+ $Q curl -o $(TMPDIR ) /goreleaser.tar.gz -L $(GORELEASER_PRO_URL )
69+ $Q ls $(TMPDIR )
70+ $Q tar xvzf $(TMPDIR ) /goreleaser.tar.gz -C $(TMPDIR )
71+ $Q cp $(TMPDIR ) /goreleaser $(GOPATH ) /bin
5872
5973.PHONY : bootstra%
6074
You can’t perform that action at this time.
0 commit comments