]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.13: move 'go get -t' paragraph to be adjacent to 'go get -u' changes
authorBryan C. Mills <bcmills@google.com>
Wed, 26 Jun 2019 14:07:13 +0000 (10:07 -0400)
committerBryan C. Mills <bcmills@google.com>
Wed, 26 Jun 2019 18:38:59 +0000 (18:38 +0000)
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/+/183918
Reviewed-by: Jay Conrod <jayconrod@google.com>
doc/go1.13.html

index 180fcc94995a2fb731a3b8ae96d61717e0b2e729..261af129451d58865915402f8543cf5795305ddf 100644 (file)
@@ -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>