Skip to content

Commit

Permalink
Merge pull request vmware-tanzu#245 from kaovilai/1.0-ci-3
Browse files Browse the repository at this point in the history
Makefile.prow `GOFLAGS=` when `go install`
  • Loading branch information
hhpatel14 authored Mar 15, 2023
2 parents dfb824d + d577052 commit 0f8d542
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile.prow
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GOFLAGS="-mod=mod"
GOFLAGS=-mod=mod
# emulate as close as possible upstream ci target
# upstream ci target: verify-modules verify all test
# we skip verify for now
Expand All @@ -16,7 +16,7 @@ all:
.PHONY: test
# our test is modified to avoid docker usage
test: hack-docker
@echo Using KUBEBUILDER_ASSETS=$(KUBEBUILDER_ASSETS)
@echo Testing with KUBEBUILDER_ASSETS=$(KUBEBUILDER_ASSETS)
KUBEBUILDER_ASSETS=$(KUBEBUILDER_ASSETS) GOFLAGS=$(GOFLAGS) hack/test.sh

.PHONY: hack-docker
Expand All @@ -31,4 +31,6 @@ envtest: $(GOPATH)/bin/setup-envtest
$(GOPATH)/bin/setup-envtest use -p path

$(GOPATH)/bin/setup-envtest:
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
@echo Installing envtest tools
GOFLAGS= go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
@echo Installed envtest tools

0 comments on commit 0f8d542

Please sign in to comment.