]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: remove (*loader).forceStdVendor
authorBryan C. Mills <bcmills@google.com>
Thu, 27 Aug 2020 20:34:59 +0000 (16:34 -0400)
committerBryan C. Mills <bcmills@google.com>
Wed, 9 Sep 2020 20:47:23 +0000 (20:47 +0000)
commit26d27f96fec733fe09751b49b47282c9109fb8ad
treeb044ae6466902547ae81d09940a1395decb0663f
parentb96d32bd92087470f85cfab99e289e609a593d03
cmd/go/internal/modload: remove (*loader).forceStdVendor

forceStdVendor was a special-case mechanism to allow Go contributors
to use vendored dependencies by default when working in GOROOT/src.

As of Go 1.14,¹ the 'go' command uses vendored dependencies by default
within all modules, so the 'std' and 'cmd' modules no longer need to
be special cases, and we can remove this special-case code.

¹ https://golang.org/doc/go1.14#vendor

Updates #33848
Updates #30241

Change-Id: Ib2fb5841c253113b17fa86a086ce85a22ac3d121
Reviewed-on: https://go-review.googlesource.com/c/go/+/251159
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modload/load.go
src/cmd/go/testdata/script/mod_list_std.txt
src/cmd/go/testdata/script/mod_std_vendor.txt