Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2020-08-04 20:27:57 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2020-08-04 20:27:57 +0300
commit9c21e6dd51fbee1684d8492604ff43d863b057f3 (patch)
tree8a72727096da70c4b522809b0057e6db71887c16 /Makefile
parent5111b9e3c10497c1b9290a57dace450c469cbfbc (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--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e84143849..727a48078 100644
--- a/Makefile
+++ b/Makefile
@@ -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