Skip to content

Commit d134e21

Browse files
authored
Add go vet Make path (redhat-best-practices-for-k8s#27)
1 parent 1dbd46a commit d134e21

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
GO_PACKAGES=$(shell go list ./... | grep -v vendor)
2+
13
.PHONY: all \
24
build \
35
fmt \
46
generate-golang-schema \
57
lint \
6-
tests
8+
tests \
9+
vet
710

811
all: generate-golang-schema fmt lint build tests
912

@@ -25,3 +28,6 @@ tests:
2528

2629
validate-example:
2730
jsonschema -i schemas/claim.example.json schemas/claim.schema.json
31+
32+
vet:
33+
go vet ${GO_PACKAGES}

0 commit comments

Comments
 (0)