From 0385870b84692613ff9ca4a69ce73e64a9bc3cab Mon Sep 17 00:00:00 2001 From: c-bata Date: Thu, 25 Oct 2018 19:21:47 +0900 Subject: [PATCH] Fix goimports --- .travis.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e1dde98..6d7e2c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,6 @@ install: script: - go build ./_example/simple-echo/main.go - - diff <(goimports -d .) <(echo -n "") + - diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(echo -n "") - make lint - make test diff --git a/Makefile b/Makefile index f0b6869..deb6c92 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ setup: ## Setup for required tools. .PHONY: fmt fmt: ## Formatting source codes. - @goimports -w . + @goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*") .PHONY: lint lint: ## Run golint and go vet.