We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84f6424 commit 88c23deCopy full SHA for 88c23de
Makefile
@@ -12,6 +12,8 @@ GOBIN ?= $(GOPATH)/bin
12
GOLINT ?= $(GOBIN)/golint
13
GOSEC ?= $(GOBIN)/gosec
14
GINKGO ?= $(GOBIN)/ginkgo
15
+GO_MINOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2)
16
+GOVULN_MIN_VERSION = 17
17
GO_VERSION = 1.18
18
19
default:
@@ -50,7 +52,9 @@ sec:
50
52
51
53
govulncheck: install-govulncheck
54
@echo "CHECKING VULNERABILITIES"
- govulncheck ./...
55
+ @if [ $(GO_MINOR_VERSION) -gt $(GOVULN_MIN_VERSION) ]; then \
56
+ govulncheck ./...; \
57
+ fi
58
59
test-coverage: install-test-deps
60
go test -race -v -count=1 -coverprofile=coverage.out ./...
0 commit comments