aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-02-26 21:37:57 +0100
committerRobin Jarry <robin@jarry.cc>2023-02-26 21:48:43 +0100
commit30d8f8dd213b86bd34c501d7820a33fd441cc267 (patch)
tree669e1a63f771e2f668a03b2cbc0296b168882abb /Makefile
parentbba7159756908f092655bdf6db091daf9eb74f76 (diff)
downloadaerc-30d8f8dd213b86bd34c501d7820a33fd441cc267.tar.gz
lint: always run golangci-lint@latest
Do not store the dependency in tools.go as there may be conflicts with some indirect dependencies of aerc. Run gofumpt and golangci-lint from their latest tagged release. This should fix issues with go 1.20. Bonus, it drains a bit of fat from go.sum. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cfcd0fe3..965d6596 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,7 @@ dev:
.PHONY: fmt
fmt:
- $(GO) run mvdan.cc/gofumpt -w .
+ $(GO) run mvdan.cc/gofumpt@latest -w .
linters.so: contrib/linters.go
$(GO) build -buildmode=plugin -o linters.so contrib/linters.go
@@ -79,10 +79,10 @@ linters.so: contrib/linters.go
lint: linters.so
@contrib/check-whitespace `git ls-files ':!:filters/vectors'` && \
echo white space ok.
- @$(GO) run mvdan.cc/gofumpt -d . | grep ^ \
+ @$(GO) run mvdan.cc/gofumpt@latest -d . | grep ^ \
&& echo The above files need to be formatted, please run make fmt && exit 1 \
|| echo all files formatted.
- $(GO) run github.com/golangci/golangci-lint/cmd/golangci-lint run
+ $(GO) run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run
.PHONY: vulncheck
vulncheck: