Skip to content

Commit 65e64f9

Browse files
authored
Merge pull request #457 from yussufsh/main
Add govulncheck target in Makefile
2 parents 1fc6c71 + 9ddff97 commit 65e64f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ bin/golangci-lint: | bin
9494
echo "Installing golangci-lint..."
9595
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.54.2
9696

97+
bin/govulncheck: | bin
98+
echo "Installing govulncheck..."
99+
go install golang.org/x/vuln/cmd/[email protected]
100+
97101
mockgen: bin/mockgen
98102
./hack/update-gomock
99103

@@ -103,6 +107,10 @@ verify: bin/golangci-lint
103107
./hack/verify-all
104108
echo "Congratulations! All Go source files have been linted."
105109

110+
.PHONY: govulncheck
111+
govulncheck: bin/govulncheck
112+
$(GOBIN)/govulncheck ./...
113+
106114
.PHONY: verify-vendor
107115
test: verify-vendor
108116
verify: verify-vendor

0 commit comments

Comments
 (0)