aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2021-12-13 13:49:30 -0500
committerMichael Matloob <matloob@golang.org>2021-12-14 19:10:22 +0000
commit265fbaa94b8614cbd861711d7f7c6d278dc1ddba (patch)
tree6349dcd67ebb0693f3f0e2aebca40532448a9860 /doc
parentbecaeea1199b875bc24800fa88f2f4fea119bf78 (diff)
downloadgo-265fbaa94b8614cbd861711d7f7c6d278dc1ddba.tar.gz
go-265fbaa94b8614cbd861711d7f7c6d278dc1ddba.zip
doc: update go1.18 release notes with a blurb about workspace mode
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.18.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/go1.18.html b/doc/go1.18.html
index 5ab40280b5..e5222b7fcc 100644
--- a/doc/go1.18.html
+++ b/doc/go1.18.html
@@ -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 -->