Skip to content

Commit f959a36

Browse files
committed
Move goreleaser to a go.mod managed tool
1 parent c859bfb commit f959a36

File tree

6 files changed

+1342
-1611
lines changed

6 files changed

+1342
-1611
lines changed

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ install: build ## Install built provider into the local terraform cache
247247
.PHONY: tools
248248
tools: $(GOBIN) tools-golangci-lint ## Install useful tools for linting, docs generation and development
249249
@ cd tools && go install github.com/client9/misspell/cmd/misspell
250-
@ cd tools && go install github.com/goreleaser/goreleaser/v2
251250

252251
.PHONY: tools-golangci-lint
253252
tools-golangci-lint: ## Download golangci-lint locally if necessary.
@@ -287,22 +286,21 @@ check-docs: docs-generate ## Check uncommitted changes on docs
287286

288287

289288
.PHONY: setup
290-
setup: tools ## Setup the dev environment
291-
289+
setup: tools vendor ## Setup the dev environment
292290

293291
.PHONY: release-snapshot
294292
release-snapshot: tools ## Make local-only test release to see if it works using "release" command
295-
@ $(GOBIN)/goreleaser release --snapshot --clean
293+
@ go tool github.com/goreleaser/goreleaser/v2 release --snapshot --clean
296294

297295

298296
.PHONY: release-no-publish
299297
release-no-publish: tools check-sign-release ## Make a release without publishing artifacts
300-
@ $(GOBIN)/goreleaser release --skip=publish,announce,validate --parallelism=2
298+
@ go tool github.com/goreleaser/goreleaser/v2 release --skip=publish,announce,validate --parallelism=2
301299

302300

303301
.PHONY: release
304302
release: tools check-sign-release check-publish-release ## Build, sign, and upload your release
305-
@ $(GOBIN)/goreleaser release --clean --parallelism=4
303+
@ go tool github.com/goreleaser/goreleaser/v2 release --clean --parallelism=4
306304

307305

308306
.PHONY: check-sign-release

0 commit comments

Comments
 (0)