Skip to content

Commit

Permalink
Makefile: Add .PHONY target for vendor check
Browse files Browse the repository at this point in the history
Specify a .PHONY target for the make vendor target. This ensure that
running `make vendor` will always be considered "out-of-date" and all
the modules will commands be run.
  • Loading branch information
timflannagan committed Mar 3, 2021
1 parent 753c5e8 commit 7ecbec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fmt:
@echo path: $(shell pwd)
find . -name '*.go' -not -path "./vendor/*" | xargs gofmt -w

# Update dependencies
.PHONY: vendor
vendor:
go mod tidy
go mod vendor
Expand Down

0 comments on commit 7ecbec9

Please sign in to comment.