Refactor Makefile
Some checks reported warnings
Cadoles/go-http-peering/pipeline/head This commit is unstable

This commit is contained in:
2022-09-05 12:40:58 +02:00
parent 932aa46a18
commit 9c26b79769
5 changed files with 33 additions and 31 deletions

View File

@ -3,31 +3,16 @@ test:
go test -cover -v ./...
watch:
modd
go run -mod=readonly github.com/cortesi/modd/cmd/modd@latest
release:
script/release
deps:
GO111MODULE=off go get -u golang.org/x/tools/cmd/godoc
GO111MODULE=off go get -u github.com/cortesi/modd/cmd/modd
GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
GO111MODULE=off go get -u github.com/lmika/goseq
tidy:
go mod tidy
lint:
golangci-lint run --tests=false --enable-all
sequence-diagram: sd-advertise sd-update sd-ping
sd-%:
goseq doc/sequence-diagram/$*.seq > doc/sequence-diagram/$*.svg
doc:
@echo "open your browser to http://localhost:6060/pkg/forge.cadoles.com/Cadoles/go-http-peering to see the documentation"
godoc -http=:6060
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0 run --tests=false --enable-all
bin/keygen:
CGO_ENABLED=0 go build -o bin/keygen ./cmd/keygen