-
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: suggest 'go get' not 'go mod tidy' #43430
Comments
Change https://golang.org/cl/280713 mentions this issue: |
Looked into this a bit today. We print hints to run
Focusing on (3), I agree it's better to recommend
Dropping the |
That might be a reasonable argument to suggest (But I agree that either of those seems less disruptive than |
Maybe... though that might also upgrade |
Right. So |
Before closing this, I'll go through all our command-line hints and verify they're in the same format and appropriate for the situation. From a comment in CL 280713, we should recommend |
Change https://golang.org/cl/282121 mentions this issue: |
A real message:
This message will lead to overuse of go mod tidy, with all the "unexpected magic" we are trying to avoid by not automatically updating go.mod. The suggestion should be that users actually add the dependencies they need, either with 'go get' (no args) in the directory or 'go get 9fans.net/go/draw' (the specific package).
It would also be nice to show the command in an easily copy-pastable form. So my suggestion is:
This is a release blocker because the message is new in Go 1.16 and will be seen frequently.
The text was updated successfully, but these errors were encountered: