Skip to content

Commit 8f2db14

Browse files
author
Jay Conrod
committed
cmd/go: release note for -mod=readonly by default
For #40728 Fixes #42466 Change-Id: If2b21b37a590c243828c4fd278ab10b2705450f0 Reviewed-on: https://go-review.googlesource.com/c/go/+/268859 Reviewed-by: Bryan C. Mills <[email protected]> Trust: Dmitri Shuralyov <[email protected]>
1 parent b2ef159 commit 8f2db14

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/go1.16.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ <h3 id="go-command">Go command</h3>
8282

8383
<h4 id="modules">Modules</h4>
8484

85+
<p><!-- golang.org/issue/40728 -->
86+
Build commands like <code>go</code> <code>build</code> and <code>go</code>
87+
<code>test</code> no longer modify <code>go.mod</code> and <code>go.sum</code>
88+
by default. Instead, they report an error if a module requirement or checksum
89+
needs to be added or updated (as if the <code>-mod=readonly</code> flag were
90+
used). Module requirements and sums may be adjusted with <code>go</code>
91+
<code>mod</code> <code>tidy</code> or <code>go</code> <code>get</code>.
92+
</p>
93+
8594
<p><!-- golang.org/issue/40276 -->
8695
<code>go</code> <code>install</code> now accepts arguments with
8796
version suffixes (for example, <code>go</code> <code>install</code>

0 commit comments

Comments
 (0)