diff --git a/doc/go1.22.html b/doc/go1.22.html index 414f30e6fb4d4..631184a0e802c 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -67,7 +67,20 @@
-
+ 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.