forked from coop-cloud/abra
chore: formatting, indentation
This commit is contained in:
parent
f5e2710138
commit
2eebac6fc0
4
Makefile
4
Makefile
|
@ -4,6 +4,7 @@ COMMIT := $(shell git rev-list -1 HEAD)
|
||||||
GOPATH := $(shell go env GOPATH)
|
GOPATH := $(shell go env GOPATH)
|
||||||
LDFLAGS := "-X 'main.Commit=$(COMMIT)'"
|
LDFLAGS := "-X 'main.Commit=$(COMMIT)'"
|
||||||
DIST_LDFLAGS := $(LDFLAGS)" -s -w"
|
DIST_LDFLAGS := $(LDFLAGS)" -s -w"
|
||||||
|
|
||||||
export GOPRIVATE=coopcloud.tech
|
export GOPRIVATE=coopcloud.tech
|
||||||
|
|
||||||
all: format check build test
|
all: format check build test
|
||||||
|
@ -29,7 +30,8 @@ format:
|
||||||
@gofmt -s -w .
|
@gofmt -s -w .
|
||||||
|
|
||||||
check:
|
check:
|
||||||
@test -z $$(gofmt -l .) || (echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1)
|
@test -z $$(gofmt -l .) || \
|
||||||
|
(echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1)
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@go test ./... -cover -v
|
@go test ./... -cover -v
|
||||||
|
|
Loading…
Reference in New Issue