mirror of
https://github.com/golang/go
synced 2024-11-14 20:00:31 -07:00
[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>
This commit is contained in:
parent
27d5fccd21
commit
9bb97ea047
@ -1,5 +1,6 @@
|
|||||||
[!net] skip
|
[!net] skip
|
||||||
[!exec:git] skip
|
[!exec:git] skip
|
||||||
|
env GO111MODULE=off
|
||||||
|
|
||||||
# Clone the repo via HTTPS manually.
|
# Clone the repo via HTTPS manually.
|
||||||
exec git clone -q https://github.com/golang/example github.com/golang/example
|
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 remote set-url origin xyz://github.com/golang/example
|
||||||
exec git config --local url.https://github.com/.insteadOf xyz://github.com/
|
exec git config --local url.https://github.com/.insteadOf xyz://github.com/
|
||||||
|
|
||||||
go get -d -u -f github.com/golang/example/hello
|
go get -d -u -f github.com/golang/example/hello
|
||||||
|
Loading…
Reference in New Issue
Block a user