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/go: TestShadowingLogic fails when GOROOT path has spaces #14671
Comments
I cannot reproduce your problem with your patch or without. I suppose you have to debug this yourself. Alex |
It looks like spaces are getting replaced with underscores in The expected output was:
Actual output was:
It turns out that this behavior in go list is generic:
The test in
I added
and it seems to solve the problem. I don't know whether the test is wrong, or whether go list is wrong (although I suspect it is the test.) Of course, this simple change might not be a complete enough fix. Someone who knows what should happen ought to look at this and decide what to do. |
@nadiasvertex I confirm that TestShadowingLogic is broken if your GOROOT has space in it:
and changing space into underscore fixes the test:
I think we want to change the test as per your suggestion. Feel free to send a CL. Alex |
Fix is here: https://go-review.googlesource.com/20714 |
CL https://golang.org/cl/20714 mentions this issue. |
Please answer these questions before submitting your issue. Thanks!
go version
)?1.5 compiling tip + change 18057 (https://go-review.googlesource.com/#/c/18057/20) from Gerrit
go env
)?Ran all.bat
No errors, ALL TESTS PASSED
The text was updated successfully, but these errors were encountered: