From d85694ab4fdf1d8f99d6cb96878bfb7acab8df13 Mon Sep 17 00:00:00 2001
From: "Bryan C. Mills"
- 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
.
unix
build constraint