]> Cypherpunks repositories - gostls13.git/commit
cmd/go: clear GOPATH from build context when importing from module
authorMichael Matloob <matloob@golang.org>
Wed, 15 Jun 2022 18:24:12 +0000 (14:24 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 19 Sep 2022 17:01:15 +0000 (17:01 +0000)
commit73c38f226e15e218411d87a05c878f087ad89455
treeeda7973096d621c5f2fd896552e373447d577fe6
parent0857633f8b4ca4b28aad160d1dd1dbb1fe5a4d7d
cmd/go: clear GOPATH from build context when importing from module

In module mode, we shouldn't handle packages under GOPATH any
differently from other packages. Clear GOPATH from the build context
before Importing to ensure that.

Fixes #37015.

Change-Id: I0203e25013716bca346fd4a67d80f1d05bbaea77
Reviewed-on: https://go-review.googlesource.com/c/go/+/412476
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
doc/go1.20.html
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/modindex/read.go
src/cmd/go/testdata/script/mod_go_version_missing.txt