summaryrefslogtreecommitdiff
path: root/hack/lib/golang.sh
diff options
context:
space:
mode:
authorfisherxu <xufei40@huawei.com>2022-04-11 17:37:10 +0800
committerfisherxu <xufei40@huawei.com>2022-04-18 10:46:17 +0800
commit81673f164ea643d5cbf142b660204490264f7231 (patch)
tree334ed204e98b295d9d97e8d40c0dc20f44e3b0c1 /hack/lib/golang.sh
parentMerge pull request #3788 from gy95/release (diff)
downloadkubeedge-81673f164ea643d5cbf142b660204490264f7231.tar.gz
remove gopath in makefile
Signed-off-by: fisherxu <xufei40@huawei.com>
Diffstat (limited to 'hack/lib/golang.sh')
-rwxr-xr-xhack/lib/golang.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
index 1572b4b1e..7d4717050 100755
--- a/hack/lib/golang.sh
+++ b/hack/lib/golang.sh
@@ -148,7 +148,7 @@ kubeedge::golang::binaries_from_targets() {
kubeedge::check::env() {
errors=()
- if [ -z $GOPATH ]; then
+ if [ -z $(go env GOPATH) ]; then
errors+="GOPATH environment value not set"
fi