-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: list errors for import is a program, not an importable package #61857
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
Comments
note that the |
Thank you, wasn't even aware of this flag: |
Duplicate of #59186 |
@bcmills not quite sure why this is marked as duplicate. From what I understand the reasoning is that:
Please correct me (only if wrong). Thank you! |
The errors were previously not reported consistently. For some unknown reason, the code changes for #59186 is still open because we still don't understand why the errors were previously not reported, and we still don't know whether there are causes where they remain unreported today. |
Seems like the way we use the go list command has changed behavior; see this issue golang/go#61857
I have the same err and I can fix him , |
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?
Install build tools from
tools.go
:What did you expect to see?
No error
What did you see instead?
go list
errors:I realise this might not be a bug per se but it is a change of behavior over go1.20.
The text was updated successfully, but these errors were encountered: