Commit 06f709a0 authored by Bryan C. Mills's avatar Bryan C. Mills

doc/go1.13: move 'go get -t' paragraph to be adjacent to 'go get -u' changes

As suggested by thepudds in CL 183630.

Also adjust the paragraph to harmonize the transitions between the
newly-adjacent paragraphs.

Change-Id: Ie85abea946db81804c1995d27be4951d5db6b812
Reviewed-on: https://go-review.googlesource.com/c/go/+/183918Reviewed-by: default avatarJay Conrod <jayconrod@google.com>
parent b21c8370
......@@ -267,6 +267,17 @@ go env -w GOSUMDB=off
the source code needed to build dependencies of the named packages.
</p>
<p><!-- CL 177677 -->
By default, <code>go</code> <code>get</code> <code>-u</code> in module mode
upgrades only non-test dependencies, as in GOPATH mode. It now also accepts
the <code>-t</code> flag, which (as in GOPATH mode)
causes <code>go</code> <code>get</code> to include the packages imported
by <em>tests of</em> the packages named on the command line. If
the <code>-t</code> flag is set, the packages imported by tests will be
updated (if the <code>-u</code> flag is set), downloaded, and built (unless
the <code>-d</code> flag is set) along with the usual non-test packages.
</p>
<p><!-- CL 167747 -->
In module-aware mode, the <code>go</code> <code>get</code> subcommand now
supports the version suffix <code>@patch</code>. The <code>@patch</code>
......@@ -277,16 +288,6 @@ go env -w GOSUMDB=off
equivalent to the existing <code>@latest</code> suffix.
</p>
<p><!-- CL 177677 -->
Additionally, the <code>go</code> <code>get</code> subcommand now supports
the <code>-t</code> flag in module-aware mode. As in GOPATH mode,
the <code>-t</code> flag instructs <code>go</code> <code>get</code> to include
the packages imported by <em>tests of</em> the packages named on the command
line. If the <code>-t</code> flag is set, the packages imported by tests will
be updated (if the <code>-u</code> flag is set), downloaded, and built (unless
the <code>-d</code> flag is set) along with the usual non-test packages.
</p>
<h4 id="version-validation">Version validation</h4><!-- CL 181881 -->
<p>
......
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