diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |