]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/importer,go/internal/gcimporter: use the 'go' command from build...
authorBryan C. Mills <bcmills@google.com>
Fri, 14 Apr 2023 16:48:26 +0000 (16:48 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 24 Apr 2023 18:46:00 +0000 (18:46 +0000)
commit484535e67b03ff8c757b66806032aee54a2a3bde
tree35f4ec82e038b6fad1408d271a31d03293e19632
parent813a811d3308c82cfc5b739321a5eb973612a990
cmd/compile/internal/importer,go/internal/gcimporter: use the 'go' command from build.Default.GOROOT in lookupGorootExport

Also set GOROOT explicitly in case it is set to something else in the
caller's environment.

Updates #59598.
Fixes #59637.

Change-Id: I5599ed1183b23187fc3b976786f3c320d42ef4f3
Reviewed-on: https://go-review.googlesource.com/c/go/+/484756
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
(cherry picked from commit 750e91152bbd1cb2869660ddb80f2b3adcfd1f9b)
Reviewed-on: https://go-review.googlesource.com/c/go/+/484758
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/compile/internal/importer/gcimporter.go
src/go/internal/gcimporter/gcimporter.go