]> Cypherpunks repositories - gostls13.git/commitdiff
doc: update go1.18 release notes with a blurb about workspace mode
authorMichael Matloob <matloob@golang.org>
Mon, 13 Dec 2021 18:49:30 +0000 (13:49 -0500)
committerMichael Matloob <matloob@golang.org>
Tue, 14 Dec 2021 19:10:22 +0000 (19:10 +0000)
For #47694

Change-Id: I79cdbdc66ea9942b597f29c9a4f428075f053466
Reviewed-on: https://go-review.googlesource.com/c/go/+/371295
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
doc/go1.18.html

index 5ab40280b571ea6b0a13dbc1bf7367bfd14fd90b..e5222b7fcc4b1c8e003bed0f42e9927983e6ffcc 100644 (file)
@@ -258,6 +258,17 @@ Do not send CLs removing the interior tags from such phrases.
   option <code>-fsanitize=address</code>).
 </p>
 
+<p><!-- https://golang.org/issue/45713 -->
+  The <code>go</code> command now supports a "Workspace" mode. If a
+  <code>go.work</code> file is found in the working directory or a
+  parent directory, or one is specified using the <code>-workfile</code>
+  flag, it will put the <code>go</code> command into workspace mode.
+  In workspace mode, the <code>go.work</code> file will be used to
+  determine the set of main modules used as the roots for module
+  resolution, instead of using the normally-found <code>go.mod</code>
+  file to specify the single main module.
+</p>
+
 <h3 id="gofmt"><code>gofmt</code></h3>
 
 <p><!-- https://golang.org/issue/43566 -->