Skip to content

Commit

Permalink
chore: Fix stale use of gofumports
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Nov 14, 2021
1 parent 615f155 commit 73339f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ format: ensure-gofumpt
find . -name \*.go | xargs ./bin/gofumpt -w

.PHONY: ensure-tools
ensure-tools: ensure-gofumports ensure-golangci-lint
ensure-tools: ensure-gofumpt ensure-golangci-lint

.PHONY: ensure-gofumpt
ensure-gofumports:
ensure-gofumpt:
if [ ! -x bin/gofumpt ] ; then \
mkdir -p bin ; \
GOBIN=$(shell pwd)/bin ${GO} install mvdan.cc/gofumpt@v0.2.0 ; \
Expand Down
4 changes: 2 additions & 2 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ that:
generate` and including any modified files in your commit.

* The code is correctly formatted, according to
[`gofumports`](https://mvdan.cc/gofumpt/gofumports). You can ensure this by
running `make format`.
[`gofumpt`](https://mvdan.cc/gofumpt/). You can ensure this by running `make
format`.

* The code passes [`golangci-lint`](https://github.com/golangci/golangci-lint).
You can ensure this by running `make lint`.
Expand Down

0 comments on commit 73339f8

Please sign in to comment.