Commit 0377f061 authored by Bryan C. Mills's avatar Bryan C. Mills

doc/go1.14: document changes to -mod=readonly and go.mod file maintenance

Fixes #36169

Change-Id: Ib9a53fdb0112635b53be38d6818834dd1775e70c
Reviewed-on: https://go-review.googlesource.com/c/go/+/211698
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarJay Conrod <jayconrod@google.com>
parent 4b21702f
...@@ -124,6 +124,11 @@ TODO ...@@ -124,6 +124,11 @@ TODO
<a href="https://golang.org/issue/32502">caused the build to fail</a>. <a href="https://golang.org/issue/32502">caused the build to fail</a>.
</p> </p>
<p><!-- golang.org/issue/33326 -->
<code>-mod=readonly</code> is now set by default when the <code>go.mod</code>
file is read-only and no top-level <code>vendor</code> directory is present.
</p>
<p><!-- golang.org/issue/31481 --> <p><!-- golang.org/issue/31481 -->
<code>-modcacherw</code> is a new flag that instructs the <code>go</code> <code>-modcacherw</code> is a new flag that instructs the <code>go</code>
command to leave newly-created directories in the module cache at their command to leave newly-created directories in the module cache at their
...@@ -159,6 +164,30 @@ TODO ...@@ -159,6 +164,30 @@ TODO
include them if reported by a proxy. include them if reported by a proxy.
</p> </p>
<h4 id="go.mod"><code>go.mod</code> file maintenance</h4>
<!-- golang.org/issue/34822 -->
<p>
<code>go</code> commands other than
<code>go</code> <code>mod</code> <code>tidy</code> no longer
remove a <code>require</code> directive that specifies a version of an indirect dependency
that is already implied by other (transitive) dependencies of the main
module.
</p>
<p>
<code>go</code> commands other than
<code>go</code> <code>mod</code> <code>tidy</code> no longer
edit the <code>go.mod</code> file if the changes are only cosmetic.
</p>
<p>
When <code>-mod=readonly</code> is set, <code>go</code> commands will no
longer fail due to a missing <code>go</code> directive or erroneous
<code>// indirect</code> comment.
</p>
<h4 id="module-downloading">Module downloading</h4> <h4 id="module-downloading">Module downloading</h4>
<p><!-- golang.org/issue/26092 --> <p><!-- golang.org/issue/26092 -->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment