diff options
author | silverwind | 2022-02-23 21:16:07 +0100 |
---|---|---|
committer | GitHub | 2022-02-23 20:16:07 +0000 |
commit | 2b9df564b858a9216ffb7881278f485b35946349 (patch) | |
tree | 0aaa76a02b580c1eab1cbebf54befa6e8deb5375 /Makefile | |
parent | 2b5e0134307a45581860029de99449e8be8f807e (diff) |
Lock gofumpt to v0.3.0 and run it (#18866)
We can't depend on `latest` version of gofumpt because the output will
not be stable across versions. Lock it down to the latest version
released yesterday and run it again.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -235,7 +235,7 @@ clean: .PHONY: fmt fmt: @hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ - $(GO) install mvdan.cc/gofumpt@latest; \ + $(GO) install mvdan.cc/gofumpt@v0.3.0; \ fi @echo "Running gitea-fmt (with gofumpt)..." @$(GO) run build/code-batch-process.go gitea-fmt -w '{file-list}' @@ -287,7 +287,7 @@ errcheck: .PHONY: fmt-check fmt-check: @hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ - $(GO) install mvdan.cc/gofumpt@latest; \ + $(GO) install mvdan.cc/gofumpt@0.3.0; \ fi # get all go files and run gitea-fmt (with gofmt) on them @diff=$$($(GO) run build/code-batch-process.go gitea-fmt -l '{file-list}'); \ |