aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-03-08 00:10:01 +0100
committerRobin Jarry <robin@jarry.cc>2023-03-08 00:10:36 +0100
commit335d52d8b5c861cd02984811ab2e752d3d80273d (patch)
tree4c6d0cd6af935a3b887f21eb73b96cf92ece80e7
parent72983c6ec9baaac5bd80712cbdd9c4e83b760027 (diff)
downloadaerc-335d52d8b5c861cd02984811ab2e752d3d80273d.tar.gz
aerc-335d52d8b5c861cd02984811ab2e752d3d80273d.zip
mk: use fixed versions for gofumpt and golangci-lint
@latest is flaky and does not resist GOPROXY hiccups. Signed-off-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3012757d..44bfcffe 100644
--- a/Makefile
+++ b/Makefile
@@ -57,9 +57,11 @@ dev:
$(MAKE) aerc BUILD_OPTS="-trimpath -race"
GORACE="log_path=race.log strip_path_prefix=git.sr.ht/~rjarry/aerc/" ./aerc
+gofumpt_tag = v0.4.0
+
.PHONY: fmt
fmt:
- $(GO) run mvdan.cc/gofumpt@latest -w .
+ $(GO) run mvdan.cc/gofumpt@$(gofumpt_tag) -w .
linters.so: contrib/linters.go
$(GO) build -buildmode=plugin -o linters.so contrib/linters.go
@@ -68,10 +70,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@latest -d . | grep ^ \
+ @$(GO) run mvdan.cc/gofumpt@$(gofumpt_tag) -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@latest run
+ $(GO) run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2 run
.PHONY: vulncheck
vulncheck: