aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cbb10ea..5c41cdd 100644
--- a/Makefile
+++ b/Makefile
@@ -10,8 +10,8 @@ test: dep
go test ./...
go install -race $(CASHIER_CMD) $(CASHIERD_CMD)
go vet ./...
- go list ./... |egrep -v 'vendor/|proto$$' |xargs -L1 golint -set_exit_status
- gofmt -d $(SRC_FILES)
+ go list ./... |egrep -v 'proto$$' |xargs -L1 golint -set_exit_status
+ goimports -d $(SRC_FILES)
$(MAKE) generate
@[ -z "`git status --porcelain`" ] || (echo "unexpected files: `git status --porcelain`" && exit 1)
@@ -31,5 +31,6 @@ clean:
dep:
go get -u github.com/golang/lint/golint
+ go get -u golang.org/x/tools/cmd/goimports
.PHONY: all build dep generate test cashier cashierd clean