summaryrefslogtreecommitdiff
path: root/src/cmd/go/script_test.go
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2022-04-05 18:47:23 -0400
committerMichael Matloob <matloob@golang.org>2022-06-03 20:05:38 +0000
commitee87cd1dd95fe46099e393143d9a6dcccf0a6db0 (patch)
tree4dbed709ddf43cd6fcb82692ccce8dbd658fe1fa /src/cmd/go/script_test.go
parent06261062e9a1875338b04aaea3b6335d73b513a7 (diff)
downloadgo-git-ee87cd1dd95fe46099e393143d9a6dcccf0a6db0.tar.gz
cmd/go: changes to use modindex
This CL makes the changes to actually use the module index when loading packages and instead of scanning their directories to see if they contain go files or to extract imports. Change-Id: I70106181cf64d6fd5a416644ba518b6b90030e0a Reviewed-on: https://go-review.googlesource.com/c/go/+/403778 Reviewed-by: Michael Matloob <matloob@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org>
Diffstat (limited to 'src/cmd/go/script_test.go')
-rw-r--r--src/cmd/go/script_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/go/script_test.go b/src/cmd/go/script_test.go
index 04bc8d581a..d1fe36ec21 100644
--- a/src/cmd/go/script_test.go
+++ b/src/cmd/go/script_test.go
@@ -170,6 +170,7 @@ func (ts *testScript) setup() {
"GOCACHE=" + testGOCACHE,
"GODEBUG=" + os.Getenv("GODEBUG"),
"GOEXE=" + cfg.ExeSuffix,
+ "GOINDEX=true",
"GOOS=" + runtime.GOOS,
"GOPATH=" + filepath.Join(ts.workdir, "gopath"),
"GOPROXY=" + proxyURL,