summaryrefslogtreecommitdiff
path: root/hack/lib/install.sh
diff options
context:
space:
mode:
authorfisherxu <xufei40@huawei.com>2019-12-31 10:16:59 +0800
committerfisherxu <xufei40@huawei.com>2019-12-31 10:21:26 +0800
commit47747cac197b8f07f9fabb51e3dc081362bf52f4 (patch)
treeaf8fa88445c3e8743470fdfaf4cf869af1f61d06 /hack/lib/install.sh
parentMerge pull request #1337 from fisherxu/remove-unused-const (diff)
downloadkubeedge-47747cac197b8f07f9fabb51e3dc081362bf52f4.tar.gz
avoid install kind modifing go mod files
Diffstat (limited to 'hack/lib/install.sh')
-rw-r--r--hack/lib/install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/hack/lib/install.sh b/hack/lib/install.sh
index d06e378dc..233d345db 100644
--- a/hack/lib/install.sh
+++ b/hack/lib/install.sh
@@ -37,6 +37,10 @@ function check_kind {
echo "kind installed failed, exiting."
exit 1
fi
+
+ # avoid modifing go.sum and go.mod when installing the kind
+ git checkout -- go.mod go.sum
+
export PATH=$PATH:$GOPATH/bin
else
echo -n "found kind, version: " && kind version