diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d6391eb8c4..9c16994d21 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -10,7 +10,7 @@ version: 2 before: hooks: - go mod tidy - - (cd ./tools && go generate -tags tools ./tools.go) + - make generate-tools - go generate ./... # This section defines the build matrix. builds: diff --git a/.mk/develop.mk b/.mk/develop.mk index 4bdb877e6b..cd7232ebf7 100644 --- a/.mk/develop.mk +++ b/.mk/develop.mk @@ -93,3 +93,6 @@ generate-encryption-key: ## Generates an encryption key that's useful for encryp lint-fix: ## fix all linting issues which can be automatically fixed golangci-lint run --fix +.PHONY: generate-tools +generate-tools: ## go generate tools + (cd ./tools && go generate -tags tools ./tools.go)