diff --git a/doc/go1.19.html b/doc/go1.19.html index c1523c57ec..21781c3e33 100644 --- a/doc/go1.19.html +++ b/doc/go1.19.html @@ -32,7 +32,27 @@ Do not send CLs removing the interior tags from such phrases.

Go command

- TODO: complete this section, or delete if not needed + TODO: complete this section. +

+ + +

+ 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 + examined using + go version -m + or debug.ReadBuildInfo. +

+

+ go generate now sets the GOROOT + environment variable explicitly in the generator's environment, so that + generators can locate the correct GOROOT even if built + with -trimpath.

New unix build constraint