diff options
| author | fisherxu <xufei40@huawei.com> | 2019-12-31 10:16:59 +0800 |
|---|---|---|
| committer | fisherxu <xufei40@huawei.com> | 2019-12-31 10:21:26 +0800 |
| commit | 47747cac197b8f07f9fabb51e3dc081362bf52f4 (patch) | |
| tree | af8fa88445c3e8743470fdfaf4cf869af1f61d06 /hack/lib/install.sh | |
| parent | Merge pull request #1337 from fisherxu/remove-unused-const (diff) | |
| download | kubeedge-47747cac197b8f07f9fabb51e3dc081362bf52f4.tar.gz | |
avoid install kind modifing go mod files
Diffstat (limited to 'hack/lib/install.sh')
| -rw-r--r-- | hack/lib/install.sh | 4 |
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 |
