-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: panics listing ./... in GOROOT/src #36587
Comments
I can't reproduce this on Other than your OS being Linux, perhaps there's something different about your environment. Is your |
I tried on
|
I have a habit of leaving toy .go files in $GOROOT/src, and apparently that's a bad idea. Definitely not a release blocker. |
cc @matloob So it sounds like we should either ignore this package or report an error (leaning toward error). In GOPATH mode, if there are .go files in |
Change https://golang.org/cl/216381 mentions this issue: |
I put together a change that emits an error |
Thinking about this some more: I don't think there is any clear, concise error message we can emit for We should certainly emit an error for Coincidentally, that approach also simplifies the code somewhat. |
Change https://golang.org/cl/185345 mentions this issue: |
This change is a non-minimal fix for #32917, but incidentally fixes several other bugs and makes the error messages much more ergonomic. Updates #32917 Updates #27122 Updates #28459 Updates #29280 Updates #30590 Updates #37214 Updates #36173 Updates #36587 Fixes #36008 Fixes #30992 Change-Id: Iedb26d2e0963697c130df5d0f72e7f83ec2dcf06 Reviewed-on: https://go-review.googlesource.com/c/go/+/185345 Reviewed-by: Michael Matloob <matloob@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, 1.13.4.
What did you do?
cd $(go env GOROOT)/src; go list ./...
What did you expect to see?
Some packages
What did you see instead?
@jayconrod @bcmills, marking as a tentative release blocker since it breaks gopls on the stdlib.
The text was updated successfully, but these errors were encountered: