Skip to content

Commit ec543e7

Browse files
committed
Makefile: add 'vet' target
Add a target that runs 'go vet', to be used in the CI workflow to replace direct invocations of 'go'. Signed-off-by: Victoria Dye <[email protected]>
1 parent 88fe9de commit ec543e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ doc:
4242
@scripts/make-docs.sh --docs="$(CURDIR)/docs/man" \
4343
--output="$(DOCDIR)"
4444

45+
.PHONY: vet
46+
vet:
47+
GOOS="$(GOOS)" GOARCH="$(GOARCH)" go vet ./...
48+
4549
# Testing targets
4650
.PHONY: test
4751
test: build

0 commit comments

Comments
 (0)