diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-03-02 11:04:41 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-03-02 11:41:21 +0300 |
commit | c36832285dcce3eee142731a747172e2a91b2cfc (patch) | |
tree | 155b6ffbdbe64db391503e5d75aa013b1c6b482f /Makefile | |
parent | d7a5f22faf841819669d29ccf4e431fc3b2d9b76 (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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |