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: add a 'go mod why' mode to answer “why this specific version?” #28800

Closed
bcmills opened this issue Nov 14, 2018 · 1 comment
Closed
Labels
FrozenDueToAge GoCommand cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Nov 14, 2018

As noted in #28795 (comment), today we can use go mod graph to figure out which module imposes a particular version of a dependency, then use go mod why to figure out why that module is included.

However, that's two queries to answer what is logically a single question: “why was this version of the module selected?” Perhaps we should add a go mod why flag to answer that question more directly.

(CC @rsc @myitcv @thepudds)

@bcmills bcmills added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. GoCommand cmd/go modules labels Nov 14, 2018
@bcmills bcmills added this to the Go1.13 milestone Nov 14, 2018
@bcmills
Copy link
Contributor Author

bcmills commented Nov 15, 2018

Re-reading #27900, I realize that this is a duplicate. Oops!

@bcmills bcmills closed this as completed Nov 15, 2018
@golang golang locked and limited conversation to collaborators Nov 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge GoCommand cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

2 participants