Skip to content

Commit

Permalink
add GOROOT env for generate k8s subs
Browse files Browse the repository at this point in the history
Signed-off-by: faceair <git@faceair.me>
  • Loading branch information
faceair committed Oct 19, 2020
1 parent 051e70a commit c9077ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ci/vgot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ $# = 0 ]; then
fi
d=`mktemp -d`
cd "$d"
echo 'module temp' > go.mod
go mod init temp >/dev/null 2>&1
for i; do
pkg=`echo $i | sed 's/@.*//'`
go get "$i" &&
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ES_OPERATOR_BRANCH ?= release-4.4
ES_OPERATOR_IMAGE ?= quay.io/openshift/origin-elasticsearch-operator:4.4
SDK_VERSION=v0.18.2
GOPATH ?= "$(HOME)/go"
GOROOT ?= "$(shell go env GOROOT)"

PROMETHEUS_OPERATOR_TAG ?= v0.39.0
PROMETHEUS_BUNDLE ?= https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/${PROMETHEUS_OPERATOR_TAG}/bundle.yaml
Expand Down Expand Up @@ -315,7 +316,7 @@ generate: internal-generate format

.PHONY: internal-generate
internal-generate:
@GOPATH=${GOPATH} ./.ci/generate.sh
@GOPATH=${GOPATH} GOROOT=${GOROOT} ./.ci/generate.sh

.PHONY: test
test: unit-tests e2e-tests
Expand Down

0 comments on commit c9077ea

Please sign in to comment.