From 431beab1b7c1499f5a005ab69bddaa65c13af452 Mon Sep 17 00:00:00 2001 From: Kazumichi Yamamoto Date: Wed, 16 Mar 2022 10:35:20 +0900 Subject: [PATCH] =?UTF-8?q?goimports=E3=81=8B=E3=82=89gosimports=E3=81=B8?= =?UTF-8?q?=E3=81=AE=E4=B9=97=E3=82=8A=E6=8F=9B=E3=81=88=20(#27)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/golang/go/issues/20818 のように空行が入る問題を回避するために github.com/rinchsan/gosimports へ乗り換える。 --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 26d934d..387160d 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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: