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>2023-03-02 11:04:41 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-03-02 11:41:21 +0300
commitc36832285dcce3eee142731a747172e2a91b2cfc (patch)
tree155b6ffbdbe64db391503e5d75aa013b1c6b482f /Makefile
parentd7a5f22faf841819669d29ccf4e431fc3b2d9b76 (diff)
Makefile: Recompile Gitaly linting plugin when dependencies change
While our Gitaly-specific linting plugin alreadys gets recompiled whenever its sources change, we don't yet do this when its dependencies change. Fix this by adding another dependency on its `go.sum` file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f124d5cf9..ad7f34f77 100644
--- a/Makefile
+++ b/Makefile
@@ -417,8 +417,8 @@ check-mod-tidy:
${Q}go mod tidy -compat=1.17
${Q}${GIT} diff --quiet --exit-code go.mod go.sum || (echo "error: uncommitted changes in go.mod or go.sum" && exit 1)
-${TOOLS_DIR}/gitaly-linters.so: $(wildcard ${SOURCE_DIR}/tools/golangci-lint/gitaly/*.go)
- ${Q}go build -buildmode=plugin -o '$@' -modfile ${SOURCE_DIR}/tools/golangci-lint/go.mod $^
+${TOOLS_DIR}/gitaly-linters.so: ${SOURCE_DIR}/tools/golangci-lint/go.sum $(wildcard ${SOURCE_DIR}/tools/golangci-lint/gitaly/*.go)
+ ${Q}go build -buildmode=plugin -o '$@' -modfile ${SOURCE_DIR}/tools/golangci-lint/go.mod $(filter-out $<,$^)
.PHONY: lint
## Run Go linter.