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 <[email protected]>
  • Loading branch information
faceair committed Oct 16, 2020
1 parent 051e70a commit ca4cfa4
Showing 1 changed file with 2 additions and 1 deletion.
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 ca4cfa4

Please sign in to comment.