now finally errors on bad formatting!
This commit is contained in:
parent
d22bf0a3b5
commit
f6ee57d25c
6
Makefile
6
Makefile
|
@ -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) .
|
||||||
|
|
Loading…
Reference in New Issue