Skip to content

Commit 9bb97ea

Browse files
Jay Conroddmitshur
Jay Conrod
authored andcommitted
[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 <[email protected]> Run-TryBot: Jay Conrod <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 27d5fcc commit 9bb97ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmd/go/testdata/script/get_update_unknown_protocol.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[!net] skip
22
[!exec:git] skip
3+
env GO111MODULE=off
34

45
# Clone the repo via HTTPS manually.
56
exec git clone -q https://github.com/golang/example github.com/golang/example
@@ -10,4 +11,4 @@ cd github.com/golang/example
1011
exec git remote set-url origin xyz://github.com/golang/example
1112
exec git config --local url.https://github.com/.insteadOf xyz://github.com/
1213

13-
go get -d -u -f github.com/golang/example/hello
14+
go get -d -u -f github.com/golang/example/hello

0 commit comments

Comments
 (0)