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
1 changed files with 4 additions and 2 deletions

View File

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