Skip to content

Commit

Permalink
Use go install to download binaries
Browse files Browse the repository at this point in the history
Downloading binaries with go get may change the
content of go.mod file and it is deprecated in go1.17.
`go install` should be used instead.

Fixes #427

Signed-off-by: Andrea Panattoni <[email protected]>
  • Loading branch information
zeeke committed May 17, 2022
1 parent 9880c2f commit 333262d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,22 @@ $(BUILDDIR)/$(BINARY_NAME): $(GOFILES) | $(BUILDDIR)
@cd $(BASE)/cmd/$(BINARY_NAME) && CGO_ENABLED=0 go build $(LDFLAGS) -o $(BUILDDIR)/$(BINARY_NAME) -tags no_openssl -v

$(GOLINT): | $(BASE) ; $(info building golint...)
$Q go get -u golang.org/x/lint/golint
$Q go install golang.org/x/lint/golint@latest

$(GOCOVMERGE): | $(BASE) ; $(info building gocovmerge...)
$Q go get github.com/wadey/gocovmerge
$Q go install github.com/wadey/gocovmerge@latest

$(GOCOV): | $(BASE) ; $(info building gocov...)
$Q go get github.com/axw/gocov/...
$Q go install github.com/axw/gocov/[email protected]

$(GCOV2LCOV): | $(BASE) ; $(info building gcov2lcov...)
$Q go get github.com/jandelgado/gcov2lcov
$Q go install github.com/jandelgado/gcov2lcov@latest

$(GOCOVXML): | $(BASE) ; $(info building gocov-xml...)
$Q go get github.com/AlekSi/gocov-xml
$Q go install github.com/AlekSi/gocov-xml@latest

$(GO2XUNIT): | $(BASE) ; $(info building go2xunit...)
$Q go get github.com/tebeka/go2xunit
$Q go install github.com/tebeka/go2xunit@latest

TEST_TARGETS := test-default test-bench test-short test-verbose test-race
.PHONY: $(TEST_TARGETS) test-xml check test tests
Expand Down

0 comments on commit 333262d

Please sign in to comment.