Skip to content

Commit

Permalink
goimportsからgosimportsへの乗り換え (#27)
Browse files Browse the repository at this point in the history
golang/go#20818 のように空行が入る問題を回避するために
github.com/rinchsan/gosimports へ乗り換える。
  • Loading branch information
yamamoto-febc authored Mar 16, 2022
1 parent a982d00 commit 431beab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ testacc:

.PHONY: tools
tools:
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/rinchsan/gosimports/cmd/gosimports@latest
go install golang.org/x/tools/cmd/stringer@latest
go install github.com/sacloud/addlicense@latest
go install github.com/client9/misspell/cmd/misspell@latest
Expand All @@ -50,9 +50,10 @@ gen: _gen fmt goimports set-license
_gen:
go generate ./...

.PHONY: goimports
goimports: fmt
goimports -l -w .
.PHONY: goimports gosimports
goimports: gosimports
gosimports: fmt
gosimports -l -w .

.PHONY: fmt
fmt:
Expand Down

0 comments on commit 431beab

Please sign in to comment.