-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: list module@version should suggest -m flag #50713
Comments
Hello there @bcmills. I would like to work on this. |
Change https://golang.org/cl/381195 mentions this issue: |
Echoing bcmills' comment on CL 381195, it seems like just adding We should have a discussion here about what we want the error to be before we proceed. @seankhliao What do you think? |
tbh I'm not sure why this command can't just work as for the error message, would it be unreasonable to not list commands in the base error, and check for the error type at call sites? from memory |
I think this could be done, but it would take some work to figure out how to do the checking in a "clean" way. The error is currently stored on the package and then the build/list commands check the errors on all the packages and exit (in most circumstances, for example if not |
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?
An error message telling me I may have wanted
go list -m ...
What did you see instead?
Error message only mentions
go get
andgo install
cc @bcmills @matloob
The text was updated successfully, but these errors were encountered: