summaryrefslogtreecommitdiff
path: root/hack/lib
diff options
context:
space:
mode:
authorgy95 <guoyao17@huawei.com>2022-05-16 14:55:25 +0800
committergy95 <guoyao17@huawei.com>2022-05-16 14:55:25 +0800
commitbe947edd78806b6784377eb5d36ee9873a6cd054 (patch)
treea751e0cd315d9f2709045db03a7898aa8b0356f2 /hack/lib
parentMerge pull request #3717 from Shelley-BaoYue/master-eventbus (diff)
downloadkubeedge-be947edd78806b6784377eb5d36ee9873a6cd054.tar.gz
fix make lint error: GOPATH: unbound variable
Signed-off-by: gy95 <guoyao17@huawei.com>
Diffstat (limited to 'hack/lib')
-rwxr-xr-xhack/lib/install.sh1
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"