chore: update make
parent
004aeb8ec3
commit
27f3083195
4
Makefile
4
Makefile
|
@ -5,6 +5,8 @@ all:
|
||||||
$(MAKE) test-color
|
$(MAKE) test-color
|
||||||
$(MAKE) lint
|
$(MAKE) lint
|
||||||
$(MAKE) format
|
$(MAKE) format
|
||||||
|
$(MAKE) build
|
||||||
|
$(MAKE) clean
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test -race -failfast ./...
|
go test -race -failfast ./...
|
||||||
|
@ -29,13 +31,13 @@ lint:
|
||||||
|
|
||||||
format:
|
format:
|
||||||
$(MAKE) build
|
$(MAKE) build
|
||||||
# go install github.com/haunt98/gofimports/cmd/gofimports@latest
|
|
||||||
go install mvdan.cc/gofumpt@latest
|
go install mvdan.cc/gofumpt@latest
|
||||||
./gofimports -w --company github.com/make-go-great,github.com/haunt98 .
|
./gofimports -w --company github.com/make-go-great,github.com/haunt98 .
|
||||||
gofumpt -w -extra .
|
gofumpt -w -extra .
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
$(MAKE) clean
|
||||||
go build ./cmd/gofimports
|
go build ./cmd/gofimports
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in New Issue