]> Cypherpunks repositories - gostls13.git/commit
cmd/go: allow -mod=vendor to be set outside of a module
authorMichael Matloob <matloob@golang.org>
Fri, 4 Nov 2022 21:27:38 +0000 (17:27 -0400)
committerMichael Matloob <matloob@golang.org>
Thu, 10 Nov 2022 20:24:57 +0000 (20:24 +0000)
commitf57ebed35132d02e5cf016f324853217fb545e91
treeaa829516431ca1a2d42e3fd421b0d91b462cd342
parente87e7997677b66b4afd2d4f23d35f561127dac02
cmd/go: allow -mod=vendor to be set outside of a module

It will behave as if teh command-line-arguments module was vendored,
with zero dependencies, much as -mod=readonly works.

Fixes #56536

Change-Id: Ia02dda2f90d006b5917c3ae002ccb714987f27a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/448019
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modload/import.go
src/cmd/go/internal/modload/init.go
src/cmd/go/testdata/script/vendor_outside_module.txt [new file with mode: 0644]