Skip to content

Commit

Permalink
Replace GO111MODULE=off go get -u with go install in Makefile
Browse files Browse the repository at this point in the history
Go1.22 drops support for GO111MODULE=off go get -u in legacy gopath
mode.
  • Loading branch information
thunderboltsid committed Mar 13, 2024
1 parent 5174097 commit c1cb8b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
SHELL := /bin/bash
GOCMD=go
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
GOINSTALL=$(GOCMD) install
GOTOOL=$(GOCMD) tool
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true
Expand Down Expand Up @@ -383,8 +382,8 @@ coverage: setup-envtest ## Run the tests of the project and export the coverage
KUBEBUILDER_ASSETS="$(shell $(SETUP_ENVTEST) use $(ENVTEST_K8S_VERSION) --arch=amd64 -p path)" $(GOTEST) -cover -covermode=count -coverprofile=profile.cov -coverpkg=./... ./...
$(GOTOOL) cover -func profile.cov
ifeq ($(EXPORT_RESULT), true)
$(GOINSTALL) github.com/AlekSi/gocov-xml
$(GOINSTALL) github.com/axw/gocov/gocov
$(GOINSTALL) github.com/AlekSi/gocov-xml@latest
$(GOINSTALL) github.com/axw/gocov/gocov@latest
gocov convert profile.cov | gocov-xml > coverage.xml
endif

Expand Down

0 comments on commit c1cb8b8

Please sign in to comment.