HW12 поправил Makefile
parent
24985e49f8
commit
96a69e9833
|
@ -1,13 +1,16 @@
|
|||
build:
|
||||
go build -o ./bin/calendar ./src
|
||||
|
||||
run:
|
||||
go run ./src/calendar/main.go -config ./configs/config.toml
|
||||
|
||||
test:
|
||||
go test -race ./src/...
|
||||
|
||||
install-lint-deps:
|
||||
(which golangci-lint > /dev/null) || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0
|
||||
|
||||
lint: install-lint-deps
|
||||
golangci-lint run ./...
|
||||
|
||||
.PHONY: build test lint
|
||||
install-lint-deps:
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||
|
||||
.PHONY: build run test lint
|
Loading…
Reference in New Issue