Skip to content

Commit

Permalink
chore: remove nightly Go binary from makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Dec 2, 2023
1 parent 9f15195 commit ad7eae3
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

BIN=go

build:
${BIN} build -v ./...
go build -v ./...

test:
go test -race -v ./...
Expand All @@ -15,18 +13,18 @@ watch-bench:
reflex -t 50ms -s -- sh -c 'go test -benchmem -count 3 -bench ./...'

coverage:
${BIN} test -v -coverprofile=cover.out -covermode=atomic .
${BIN} tool cover -html=cover.out -o cover.html
go test -v -coverprofile=cover.out -covermode=atomic ./...
go tool cover -html=cover.out -o cover.html

# tools
tools:
${BIN} install github.com/cespare/reflex@latest
${BIN} install github.com/rakyll/gotest@latest
${BIN} install github.com/psampaz/go-mod-outdated@latest
${BIN} install github.com/jondot/goweight@latest
${BIN} install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
${BIN} get -t -u golang.org/x/tools/cmd/cover
${BIN} install github.com/sonatype-nexus-community/nancy@latest
go install github.com/cespare/reflex@latest
go install github.com/rakyll/gotest@latest
go install github.com/psampaz/go-mod-outdated@latest
go install github.com/jondot/goweight@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go get -t -u golang.org/x/tools/cmd/cover
go install github.com/sonatype-nexus-community/nancy@latest
go mod tidy

lint:
Expand All @@ -35,10 +33,10 @@ lint-fix:
golangci-lint run --timeout 60s --max-same-issues 50 --fix ./...

audit: tools
${BIN} list -json -m all | nancy sleuth
go list -json -m all | nancy sleuth

outdated: tools
${BIN} list -u -m -json all | go-mod-outdated -update -direct
go list -u -m -json all | go-mod-outdated -update -direct

weight: tools
goweight

0 comments on commit ad7eae3

Please sign in to comment.