Skip to content

Commit

Permalink
Add make generate-tools target for goreleaser hooks (#3608)
Browse files Browse the repository at this point in the history
* Add a makefile target for go generate tools

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>

* Use make generate-tools for goreleaser hook

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>

---------

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
  • Loading branch information
rdimitrov authored Jun 14, 2024
1 parent 00f09f9 commit 328e2a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .mk/develop.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 328e2a1

Please sign in to comment.