For #51473.
Change-Id: I01a35e5ebc83b8b72e414ed1730e9147ea590959
Reviewed-on: https://go-review.googlesource.com/c/go/+/409176
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
with <code>-trimpath</code>.
</p>
+<p><!-- CL 404134 -->
+ <code>go</code> <code>test</code> and <code>go</code> <code>generate</code> now place
+ <code>GOROOT/bin</code> at the beginning of the <code>PATH</code> used for the
+ subprocess, so tests and generators that execute the <code>go</code> command
+ will resolve it to same <code>GOROOT</code>.
+</p>
+
<p><!-- CL 398058 -->
<code>go</code> <code>env</code> now quotes entries that contain spaces in
the <code>CGO_CFLAGS</code>, <code>CGO_CPPFLAGS</code>, <code>CGO_CXXFLAGS</code>, <code>CGO_FFLAGS</code>, <code>CGO_LDFLAGS</code>,