{,cosmosvisor/}Makefile: Add Makefile to cosmovisor/
subdirectory and integrate build target into the
top-directory Makefile.
cosmovisor/:
Create Golang-idiomatic cmd/ subdirectory to make
`cosmosvisor` binary (instead of a binary named `cmd`)
automatically installable with `go get`.
Minor changes to error handling:
- Plain error strings bring more value than the whole
stacktrace in case of dumb configuration errors.
- Output errors to /dev/stderr instead of /dev/stdout.
Remove dependency on github.com/pkg/errors.
13 lines
167 B
Makefile
13 lines
167 B
Makefile
#!/usr/bin/make -f
|
|
|
|
|
|
all: cosmovisor test
|
|
|
|
cosmovisor:
|
|
go build -mod=readonly ./cmd/cosmovisor
|
|
|
|
test:
|
|
go test -mod=readonly -race ./...
|
|
|
|
.PHONY: all cosmovisor test
|