]> Cypherpunks repositories - gostls13.git/commit
cmd/go: prohibit modules from importing vendored golang_org packages
authorBryan C. Mills <bcmills@google.com>
Wed, 25 Jul 2018 19:56:43 +0000 (15:56 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 31 Jul 2018 02:04:53 +0000 (02:04 +0000)
commitb294fe9b0a9a0b9032cb2ecf9924e4c90f8de0ac
tree2fa32a54915a3fef392462b1d1136019af090bd8
parent68170aa677b9fc70ce3d0fc152354e0a7e63c8cf
cmd/go: prohibit modules from importing vendored golang_org packages

Expand mod_internal tests to cover vendoring, replacements, and failure
messages.

Packages beginning with "golang_org/" resolve to $GOROOT/src/vendor, and should
therefore not be visible within module code.

Fixes #23970.

Change-Id: I706e9c4a1d1e025883e84b897972678d0fa3f2bd
Reviewed-on: https://go-review.googlesource.com/125836
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/internal/load/pkg.go
src/cmd/go/testdata/script/mod_internal.txt