diff options
| author | gy95 <guoyao17@huawei.com> | 2022-05-16 14:55:25 +0800 |
|---|---|---|
| committer | gy95 <guoyao17@huawei.com> | 2022-05-16 14:55:25 +0800 |
| commit | be947edd78806b6784377eb5d36ee9873a6cd054 (patch) | |
| tree | a751e0cd315d9f2709045db03a7898aa8b0356f2 /hack/lib/install.sh | |
| parent | Merge pull request #3717 from Shelley-BaoYue/master-eventbus (diff) | |
| download | kubeedge-be947edd78806b6784377eb5d36ee9873a6cd054.tar.gz | |
fix make lint error: GOPATH: unbound variable
Signed-off-by: gy95 <guoyao17@huawei.com>
Diffstat (limited to 'hack/lib/install.sh')
| -rwxr-xr-x | hack/lib/install.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hack/lib/install.sh b/hack/lib/install.sh index 81baa4238..9e18e694e 100755 --- a/hack/lib/install.sh +++ b/hack/lib/install.sh @@ -49,6 +49,7 @@ function check_kind { # check if golangci-lint installed function check_golangci-lint { + GOPATH="${GOPATH:-$(go env GOPATH)}" echo "checking golangci-lint" export PATH=$PATH:$GOPATH/bin expectedVersion="1.42.0" |
