diff options
| author | gy95 <guoyao17@huawei.com> | 2022-04-26 14:14:48 +0800 |
|---|---|---|
| committer | gy95 <guoyao17@huawei.com> | 2022-04-26 15:55:35 +0800 |
| commit | 132dea9c8858fb716860ca84e3637d8da334db4d (patch) | |
| tree | dd61506b98914f9f87ee70864ede5f6fb0546990 /hack/generate-crds.sh | |
| parent | Merge pull request #3780 from fisherxu/remove-gopath (diff) | |
| download | kubeedge-132dea9c8858fb716860ca84e3637d8da334db4d.tar.gz | |
fix unbound variable GOPATH
Signed-off-by: gy95 <guoyao17@huawei.com>
Diffstat (limited to 'hack/generate-crds.sh')
| -rwxr-xr-x | hack/generate-crds.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hack/generate-crds.sh b/hack/generate-crds.sh index ed0fd7fb0..167260499 100755 --- a/hack/generate-crds.sh +++ b/hack/generate-crds.sh @@ -57,6 +57,7 @@ function :pre:install: { if [ "$(which controller-gen)" == "" ]; then echo "Start to install controller-gen tool" GO111MODULE=on go install -v sigs.k8s.io/controller-tools/cmd/controller-gen@v0.6.2 + GOPATH="${GOPATH:-$(go env GOPATH)}" export PATH=$PATH:$GOPATH/bin fi } |
