New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go/internal/gcimporter: lookupGorootExport
should use the go
command from build.Default.GOROOT
#59598
Comments
The reason for the runtime.test failure is that the
Another way to pass this test, if I add But as a user, I use If you think this is a problem too, I'll submit the fix path. |
In general either you need to use As of CL 404134, |
For runtime.test, if we only set the
I saw the above comment from #51473, if this comment is possible, then Next I want to talk about another problem, which is about the lookupGorootExport. Do we need to change the "go" to "$GOROOT/bin/go" in the exec.Command, this change is not to fix the failure of runtime.test, but to conform to the functionality of this function.
Thank you. |
Ah. Yes! We should probably be using |
lookupGorootExport
should use the go
command from build.Default.GOROOT
Change https://go.dev/cl/484756 mentions this issue: |
@gopherbot, please backport to Go 1.20. This could cause the importer to silently import from the wrong GOROOT in some cases. |
Backport issue(s) opened: #59637 (for 1.20). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
Change https://go.dev/cl/484758 mentions this issue: |
…mmand 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 750e911) Reviewed-on: https://go-review.googlesource.com/c/go/+/484758 Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
…mmand from build.Default.GOROOT in lookupGorootExport Also set GOROOT explicitly in case it is set to something else in the caller's environment. Updates golang#59598. Fixes golang#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 750e911) Reviewed-on: https://go-review.googlesource.com/c/go/+/484758 Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
…mmand from build.Default.GOROOT in lookupGorootExport Also set GOROOT explicitly in case it is set to something else in the caller's environment. Updates golang#59598. Fixes golang#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 750e911) Reviewed-on: https://go-review.googlesource.com/c/go/+/484758 Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
PASS
What did you see instead?
--- FAIL: TestAtomicAlignment (0.50s)
align_test.go:92: typechecking runtime failed: mprof.go:11:2: (resolver.go/importPackage) could not import internal/abi (can't find import: "internal/abi")
The text was updated successfully, but these errors were encountered: