Skip to content

Commit 6a8ffb7

Browse files
committed
[update] add govulncheck cmd
1 parent 4a8a907 commit 6a8ffb7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ endif
2222
ifeq ($(shell command -v benchstat 2> /dev/null),)
2323
go install golang.org/x/perf/cmd/benchstat@latest
2424
endif
25+
ifeq ($(shell govulncheck ./... 2> /dev/null),)
26+
go install golang.org/x/vuln/cmd/govulncheck@latest
27+
endif
2528

2629
.PHONY: gofmt
2730
gofmt: ## Run gofmt.
@@ -47,6 +50,10 @@ staticcheck: ## Run staticcheck.
4750
gosec: ## Run gosec.
4851
gosec -exclude-dir=_examples ./...
4952

53+
.PHONY: govulncheck
54+
govulncheck: ## Run govulncheck.
55+
govulncheck ./...
56+
5057
.PHONY: test
5158
test: ## Run tests.
5259
go test -v -race ./...

0 commit comments

Comments
 (0)