Skip to content
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: remove -d flag from all 'go get' hints in error messages #43523

Closed
jayconrod opened this issue Jan 5, 2021 · 1 comment
Closed

cmd/go: remove -d flag from all 'go get' hints in error messages #43523

jayconrod opened this issue Jan 5, 2021 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. release-blocker
Milestone

Comments

@jayconrod
Copy link
Contributor

In Go 1.16, the go command prints error messages containing suggested commands to fix missing imports.

$ go list example.com/missing
no required module provides package example.com/missing; try 'go get -d example.com/missing' to add it

We should remove the -d flag from these messages. The -d flag is not essential to the operation, its meaning is not obvious to many people, and we're planning to deprecate it and make it a no-op in a future release.

@jayconrod jayconrod added NeedsFix The path to resolution is known, but the work has not been done. release-blocker labels Jan 5, 2021
@jayconrod jayconrod added this to the Go1.16 milestone Jan 5, 2021
@jayconrod jayconrod self-assigned this Jan 5, 2021
@gopherbot
Copy link

Change https://golang.org/cl/282121 mentions this issue: cmd/go: make hints in error messages more consistent

@golang golang locked and limited conversation to collaborators Jan 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. release-blocker
Projects
None yet
Development

No branches or pull requests

2 participants