diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-08-04 20:27:57 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-08-04 20:27:57 +0300 |
commit | 9c21e6dd51fbee1684d8492604ff43d863b057f3 (patch) | |
tree | 8a72727096da70c4b522809b0057e6db71887c16 /Makefile | |
parent | 5111b9e3c10497c1b9290a57dace450c469cbfbc (diff) |
Makefile: Fix golangci-lint not using build tags
The golangci-lint tool should use the set of build tags we usually build
our own sources, as otherwise it might skip some sources. So let's add
the `--build-tags` flag and pass our usual flags.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -209,7 +209,7 @@ check-mod-tidy: .PHONY: lint lint: ${GOLANGCI_LINT} - ${Q}${GOLANGCI_LINT} cache clean && ${GOLANGCI_LINT} run --out-format tab --config ${SOURCE_DIR}/.golangci.yml + ${Q}${GOLANGCI_LINT} cache clean && ${GOLANGCI_LINT} run --build-tags "${GO_BUILD_TAGS}" --out-format tab --config ${SOURCE_DIR}/.golangci.yml .PHONY: check-formatting check-formatting: ${GITALYFMT} @@ -223,7 +223,7 @@ format: ${GOIMPORTS} ${GITALYFMT} .PHONY: staticcheck-deprecations staticcheck-deprecations: ${GOLANGCI_LINT} - ${Q}${GOLANGCI_LINT} run --out-format tab --config ${SOURCE_DIR}/_support/golangci.warnings.yml + ${Q}${GOLANGCI_LINT} run --build-tags "${GO_BUILD_TAGS}" --out-format tab --config ${SOURCE_DIR}/_support/golangci.warnings.yml .PHONY: lint-warnings lint-warnings: staticcheck-deprecations |