]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.15] cmd/go: fix get_update_unknown_protocol test
authorJay Conrod <jayconrod@google.com>
Fri, 22 Jan 2021 21:59:16 +0000 (16:59 -0500)
committerDmitri Shuralyov <dmitshur@golang.org>
Fri, 22 Jan 2021 22:22:48 +0000 (22:22 +0000)
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>
src/cmd/go/testdata/script/get_update_unknown_protocol.txt

index 85c2e24bc81e1d25b4c3aa69f06caf9d182c7a13..b00adea70b22a4d7ed1a8f9d3741487bc5227414 100644 (file)
@@ -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