From: Bryan C. Mills Date: Mon, 18 Apr 2022 14:56:19 +0000 (-0400) Subject: doc/go1.19: move the description of the runtime.GOROOT change from 'cmd/go' to 'runtime' X-Git-Tag: go1.19beta1~633 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0670afa1b3aaed740816c5ffc9825d154c47d188;p=gostls13.git doc/go1.19: move the description of the runtime.GOROOT change from 'cmd/go' to 'runtime' 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 --- diff --git a/doc/go1.19.html b/doc/go1.19.html index 21781c3e33..a813d59cb8 100644 --- a/doc/go1.19.html +++ b/doc/go1.19.html @@ -36,11 +36,6 @@ Do not send CLs removing the interior tags from such phrases.

-

- Passing the -trimpath flag to go commands now - causes runtime.GOROOT() in the resulting binary to return the - empty string instead of the string "go". -

The -trimpath flag, if set, is now included in the build settings stamped into Go binaries by go build, and can be @@ -137,6 +132,17 @@ Do not send CLs removing the interior tags from such phrases. +

runtime
+
+

+ The GOROOT function now returns the empty string + (instead of "go") when the binary was built with + the -trimpath flag set and the GOROOT + variable is not set in the process environment. +

+
+
+
strconv