Skip to content

Commit 56672b9

Browse files
committed
Change to GOPATH before go get
So it won't touch go.mod Signed-off-by: Shengjing Zhu <[email protected]>
1 parent 819ac05 commit 56672b9

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

script/setup/install-cni-windows

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ WINCNI_BIN_DIR="${DESTDIR}/cni"
2121
WINCNI_PKG=github.com/Microsoft/windows-container-networking
2222
WINCNI_VERSION=aa10a0b31e9f72937063436454def1760b858ee2
2323

24+
cd "$GOPATH"
2425
go get -d "${WINCNI_PKG}/..."
2526
cd "${GOPATH}/src/${WINCNI_PKG}"
2627
git checkout "${WINCNI_VERSION}"

script/setup/install-critools

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#
2121
set -eu -o pipefail
2222

23+
cd "$GOPATH"
2324
go get -u github.com/onsi/ginkgo/ginkgo
2425
CRITEST_COMMIT=0f5f734a7e1da0979915c6e7d5b6641bd9dc2627
2526
go get -d github.com/kubernetes-sigs/cri-tools/...

script/setup/install-dev-tools

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#
2121
set -eu -o pipefail
2222

23+
# change to tmp dir, otherwise `go get` will change go.mod
24+
cd "$GOPATH"
25+
2326
# install the `protobuild` binary in $GOPATH/bin; requires module-aware install
2427
# to pin dependencies
2528
GO111MODULE=on go get github.com/stevvooe/protobuild

0 commit comments

Comments
 (0)