now finally errors on bad formatting!

This commit is contained in:
Jeffrey Paul 2020-09-08 21:29:42 -07:00
parent d22bf0a3b5
commit f6ee57d25c

View File

@ -30,7 +30,6 @@ default: fmt
fmt: fmt:
go fmt ./... go fmt ./...
goimports -l -w . goimports -l -w .
go vet ./...
docker-build: docker-build:
docker build -t $(IMAGENAME) . docker build -t $(IMAGENAME) .
@ -43,6 +42,9 @@ build: ./$(FN)
go-get: go-get:
cd cmd/$(FN) && go get -v cd cmd/$(FN) && go get -v
./$(FN): */*.go cmd/*/*.go go-get vet:
go vet ./... go vet ./...
bash -c 'test -z "$$(gofmt .)"'
./$(FN): */*.go cmd/*/*.go go-get vet
cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) . cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) .