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
cmd/internal/moddeps: test fails to find std
module when the last element of GOROOT begins with a dot or underscore
#54221
Comments
please try this with the upstream source tree. |
If by a
then my source code was exactly that.
On a fresh account (so only a system Go is visible for bootstrap) with abovementioned source checkout still gets the two errors. |
I cannot reproduce this on 14.0-CURRENT. Is there anything special in the environment? |
Nothing special.
Nothing unusual and exactly reproducible on Arch machine (other OS, other bootstrap version, other hardware). The only thing in common is that neither of machines is compiling go from |
Got it!The |
std
module when the last element of GOROOT begins with a dot or underscore
Should be an easy fix: in the call to Just need to wrap this block with |
…tart with a dot or underscore Fixes golang#54221 Change-Id: I8b1e0784390530440e7063c9608c7f4e0fe31a82
Change https://go.dev/cl/558696 mentions this issue: |
…tart with a dot or underscore Fixes golang#54221 Change-Id: I8b1e0784390530440e7063c9608c7f4e0fe31a82
…tart with a dot or underscore Fixes golang#54221 Change-Id: Id16f553251daf0b7c51f45232a4133f7dfb1ebb9 GitHub-Last-Rev: 675c2bf GitHub-Pull-Request: golang#65298 Reviewed-on: https://go-review.googlesource.com/c/go/+/558696 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, on 2 different operating systems
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: