Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: support "go mod why <module>", support tidy with excluded build tags? #26968
I was just looking in a go.mod file of mine and saw
I found that really odd, as my code doesn't run on the cloud and uses nothing related to App Engine.
So I ran
Umm. More mysteries.
But I only have modules to ask about.
The way I figured this out was nuking my
And then I saw that it was
What? Why is
That's behind a build tag.
Delete it all and instead tidy-by-building:
But two requests:
There are a number of go mod sub-commands that do analysis on the full dependency graph, as you discovered. This is one reason I filled: #25873 . @rsc Has a reasonable compromise to only put this information in the vendor subcommand per comment #25873 (comment) . But as you noted, it would still leave the other analysis hanging. My original proposal to allow something like
I agree that