diff options
author | Jay Conrod <jayconrod@google.com> | 2021-01-22 16:59:16 -0500 |
---|---|---|
committer | Dmitri Shuralyov <dmitshur@golang.org> | 2021-01-22 22:22:48 +0000 |
commit | 9bb97ea047890e900dae04202a231685492c4b18 (patch) | |
tree | 6b5de7bb16dcc539e463060ef30f2ff680f3e0c2 | |
parent | 27d5fccd2119099c70ab6a4418626beac7a97b4b (diff) | |
download | go-9bb97ea047890e900dae04202a231685492c4b18.tar.gz go-9bb97ea047890e900dae04202a231685492c4b18.zip |
[release-branch.go1.15] cmd/go: fix get_update_unknown_protocol test
This test needs to run in GOPATH mode. It broke when a go.mod file was
added to github.com/golang/example. This change sets GO111MODULE=off,
which matches master since CL 255051.
Fixes #43861
Change-Id: I9ea109a99509fac3185756a0f0d852a84c677bf5
Reviewed-on: https://go-review.googlesource.com/c/go/+/285956
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
-rw-r--r-- | src/cmd/go/testdata/script/get_update_unknown_protocol.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/go/testdata/script/get_update_unknown_protocol.txt b/src/cmd/go/testdata/script/get_update_unknown_protocol.txt index 85c2e24bc8..b00adea70b 100644 --- a/src/cmd/go/testdata/script/get_update_unknown_protocol.txt +++ b/src/cmd/go/testdata/script/get_update_unknown_protocol.txt @@ -1,5 +1,6 @@ [!net] skip [!exec:git] skip +env GO111MODULE=off # Clone the repo via HTTPS manually. exec git clone -q https://github.com/golang/example github.com/golang/example @@ -10,4 +11,4 @@ cd github.com/golang/example exec git remote set-url origin xyz://github.com/golang/example exec git config --local url.https://github.com/.insteadOf xyz://github.com/ -go get -d -u -f github.com/golang/example/hello
\ No newline at end of file +go get -d -u -f github.com/golang/example/hello |