]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: release note for -mod=readonly by default
authorJay Conrod <jayconrod@google.com>
Tue, 10 Nov 2020 16:32:04 +0000 (11:32 -0500)
committerJay Conrod <jayconrod@google.com>
Tue, 10 Nov 2020 18:42:47 +0000 (18:42 +0000)
For #40728
Fixes #42466

Change-Id: If2b21b37a590c243828c4fd278ab10b2705450f0
Reviewed-on: https://go-review.googlesource.com/c/go/+/268859
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Dmitri Shuralyov <dmitshur@golang.org>

doc/go1.16.html

index 793f6ef26d9d8392f1d541346968b718d725ce0a..2187f0b1ad10125dcc44eca5d7be232a828ad435 100644 (file)
@@ -82,6 +82,15 @@ Do not send CLs removing the interior tags from such phrases.
 
 <h4 id="modules">Modules</h4>
 
+<p><!-- golang.org/issue/40728 -->
+  Build commands like <code>go</code> <code>build</code> and <code>go</code>
+  <code>test</code> no longer modify <code>go.mod</code> and <code>go.sum</code>
+  by default. Instead, they report an error if a module requirement or checksum
+  needs to be added or updated (as if the <code>-mod=readonly</code> flag were
+  used). Module requirements and sums may be adjusted with <code>go</code>
+  <code>mod</code> <code>tidy</code> or <code>go</code> <code>get</code>.
+</p>
+
 <p><!-- golang.org/issue/40276 -->
   <code>go</code> <code>install</code> now accepts arguments with
   version suffixes (for example, <code>go</code> <code>install</code>