aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2018-08-06 22:04:38 +0100
committerNiall Sheridan <nsheridan@gmail.com>2018-08-06 23:12:43 +0100
commit446206904ecf600375d3022419d9b73f1c3bdbfa (patch)
tree4e57142c29976acfba29fa857978bb473221fd3b /Makefile
parent901103521e70a034d1476d5450d10800c0a29018 (diff)
Makefile and README fixes
Makefile: - Use goimports to format - Regenerate static files - Check that the git branch is clean README: - Remove section on Docker. To be re-added. - Link to releases
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