cosmos-sdk/cosmovisor/Makefile
Alessio Treglia 32eccde501
cosmovisor: various small improvements (#7275)
{,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.
2020-09-11 10:42:11 +01:00

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