]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.19: move the description of the runtime.GOROOT change from 'cmd/go' to 'runtime'
authorBryan C. Mills <bcmills@google.com>
Mon, 18 Apr 2022 14:56:19 +0000 (10:56 -0400)
committerBryan Mills <bcmills@google.com>
Tue, 19 Apr 2022 16:24:48 +0000 (16:24 +0000)
Even though the change in the behavior of 'runtime.GOROOT' was
not actually due to a change in the runtime package proper, I
suspect that users who notice it will look for the release note
in that section, not the 'cmd/go' section.

Fixes #51461.

Change-Id: I271752968d4152a7fdf3e170537e3072bf87ce86
Reviewed-on: https://go-review.googlesource.com/c/go/+/400814
Reviewed-by: Ian Lance Taylor <iant@google.com>
doc/go1.19.html

index 21781c3e3329ad1f202dbac4b7a80a17dab03566..a813d59cb8219008d4d90ad3e714b53f901966f4 100644 (file)
@@ -36,11 +36,6 @@ Do not send CLs removing the interior tags from such phrases.
 </p>
 
 <!-- https://go.dev/issue/51461 -->
-<p>
-  Passing the <code>-trimpath</code> flag to <code>go</code> commands now
-  causes <code>runtime.GOROOT()</code> in the resulting binary to return the
-  empty string instead of the string <code>"go"</code>.
-</p>
 <p>
   The <code>-trimpath</code> flag, if set, is now included in the build settings
   stamped into Go binaries by <code>go</code> <code>build</code>, and can be
@@ -137,6 +132,17 @@ Do not send CLs removing the interior tags from such phrases.
   </dd>
 </dl><!-- net -->
 
+<dl id="runtime"><dt><a href="/pkg/runtime/">runtime</a></dt>
+  <dd>
+    <p><!-- https://go.dev/issue/51461 -->
+      The <code>GOROOT</code> function now returns the empty string
+      (instead of <code>"go"</code>) when the binary was built with
+      the <code>-trimpath</code> flag set and the <code>GOROOT</code>
+      variable is not set in the process environment.
+    </p>
+  </dd>
+</dl><!-- runtime -->
+
 <dl id="strconv"><dt><a href="/pkg/strconv/">strconv</a></dt>
   <dd>
     <p><!-- CL 397255 -->