diff options
author | Robin Jarry <robin@jarry.cc> | 2023-03-08 00:10:01 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-03-08 00:10:36 +0100 |
commit | 335d52d8b5c861cd02984811ab2e752d3d80273d (patch) | |
tree | 4c6d0cd6af935a3b887f21eb73b96cf92ece80e7 /Makefile | |
parent | 72983c6ec9baaac5bd80712cbdd9c4e83b760027 (diff) | |
download | aerc-335d52d8b5c861cd02984811ab2e752d3d80273d.tar.gz |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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: |