Skip to content

Commit

Permalink
Merge pull request vmware-tanzu#244 from kaovilai/1.0-ci-2
Browse files Browse the repository at this point in the history
Makefile.prow don't expand KUBEBUILDER_ASSETS until after envtest
  • Loading branch information
kaovilai committed Mar 15, 2023
2 parents b0f2840 + 37c0311 commit dfb824d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ jobs:
- script: make verify
- script: make all
- script: make test
- script: make -f Makefile.prow ci
3 changes: 1 addition & 2 deletions Makefile.prow
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ test: hack-docker
hack-docker: envtest

GOPATH:=$(shell go env GOPATH)
KUBEBUILDER_ASSETS:=$(shell $(GOPATH)/bin/setup-envtest use -p path)
# if KUBEBUILDER_ASSETS contains space, escape it
KUBEBUILDER_ASSETS:=$(shell echo $(KUBEBUILDER_ASSETS) | sed 's/ /\\ /g')
KUBEBUILDER_ASSETS=$(shell echo $(shell $(GOPATH)/bin/setup-envtest use -p path) | sed 's/ /\\ /g')
.PHONY: envtest
envtest: $(GOPATH)/bin/setup-envtest
$(GOPATH)/bin/setup-envtest use -p path
Expand Down

0 comments on commit dfb824d

Please sign in to comment.