From: Bryan C. Mills Date: Mon, 11 Dec 2023 16:29:36 +0000 (-0500) Subject: doc/go1.22: document workspace vendoring X-Git-Tag: go1.22rc1~45 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=100651b6f2b33d073b54da2ff07601ab3cc029b5;p=gostls13.git doc/go1.22: document workspace vendoring For #61422. Updates #60056. Change-Id: Ie7c7e12acc173f1ff1644555016e51a52509bd6d Reviewed-on: https://go-review.googlesource.com/c/go/+/548815 Auto-Submit: Bryan Mills Reviewed-by: Michael Matloob LUCI-TryBot-Result: Go LUCI --- diff --git a/doc/go1.22.html b/doc/go1.22.html index 414f30e6fb..631184a0e8 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -67,7 +67,20 @@ func main() {

- + Commands in workspaces can now + use a vendor directory containing the dependencies of the + workspace. The directory is created by + go work vendor, + and used by build commands when the -mod flag is set to + vendor, which is the default when a workspace vendor + directory is present. +

+

+ Note that the vendor directory's contents for a workspace are different + from those of a single module: if the directory at the root of a workspace also + contains one of the modules in the workspace, its vendor directory + can contain the dependencies of either the workspace or of the module, + but not both.