aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/build_gopath_order.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/script/build_gopath_order.txt')
-rw-r--r--src/cmd/go/testdata/script/build_gopath_order.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/go/testdata/script/build_gopath_order.txt b/src/cmd/go/testdata/script/build_gopath_order.txt
index ac26c28a9f..caf25022e4 100644
--- a/src/cmd/go/testdata/script/build_gopath_order.txt
+++ b/src/cmd/go/testdata/script/build_gopath_order.txt
@@ -3,6 +3,7 @@
# -I arguments to compiler could end up not in GOPATH order,
# leading to unexpected import resolution in the compiler.
+env GO111MODULE=off
env GOPATH=$WORK/p1${:}$WORK/p2
mkdir $WORK/p1/src/foo $WORK/p2/src/baz
mkdir $WORK/p2/pkg/${GOOS}_${GOARCH} $WORK/p1/src/bar
@@ -32,4 +33,4 @@ bad
-- bar.go --
package bar
import _ "baz"
-import _ "foo" \ No newline at end of file
+import _ "foo"