Skip to content

Commit

Permalink
Makefile: run "go mod tidy" when vendoring
Browse files Browse the repository at this point in the history
`make vendor` did not do a `go mod tidy` after vendoring, whereas
CI does this as part of the vendor validation, causing CI to fail
if `make vendor` was used to update vendoring, without doing a
`go mod tidy` as well.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jan 27, 2021
1 parent c28533c commit 6c69cd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -376,6 +376,7 @@ root-coverage: ## generate coverage profiles for unit tests that require root

vendor:
@echo "$(WHALE) $@"
@go mod tidy
@go mod vendor

help: ## this help
Expand Down

0 comments on commit 6c69cd5

Please sign in to comment.