|
|
@ -61,7 +61,7 @@ PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_ |
|
|
|
SKIP_GOLANGCI_LINT :=
|
|
|
|
SKIP_GOLANGCI_LINT :=
|
|
|
|
GOLANGCI_LINT :=
|
|
|
|
GOLANGCI_LINT :=
|
|
|
|
GOLANGCI_LINT_OPTS ?=
|
|
|
|
GOLANGCI_LINT_OPTS ?=
|
|
|
|
GOLANGCI_LINT_VERSION ?= v1.59.1
|
|
|
|
GOLANGCI_LINT_VERSION ?= v1.60.2
|
|
|
|
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64.
|
|
|
|
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64.
|
|
|
|
# windows isn't included here because of the path separator being different.
|
|
|
|
# windows isn't included here because of the path separator being different.
|
|
|
|
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin)) |
|
|
|
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin)) |
|
|
@ -275,3 +275,9 @@ $(1)_precheck: |
|
|
|
exit 1; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
govulncheck: install-govulncheck |
|
|
|
|
|
|
|
govulncheck ./...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install-govulncheck: |
|
|
|
|
|
|
|
command -v govulncheck > /dev/null || go install golang.org/x/vuln/cmd/govulncheck@latest
|
|
|
|