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: go mod tidy adds an indirect dependency and then `go mod why' tells I don't need it #27696
Comments
In order to track this down, we're probably going to need an input that reproduces it. Can you share a (hopefully minimal) set of Go source files that reproduce the problem? |
The code is here: https://gitlab.com/opennota/fb2index |
Thanks, that's at least a good start. I assume it still reproduces at the current commit ( |
Yes. |
Here is a simpler reproducer:
|
Looks like I was doing it wrong.
The main module depends on |
Thanks for the explanation. It's always good to find out what went wrong even when things are working as documented: if we notice a pattern we can at least improve the documentation. |
Perhaps |
What version of Go are you using (
go version
)?go1.11 linux/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
go mod why
shows whygo mod tidy
addedgoogle.golang.org/appengine
togo.mod
.What did you see instead?
(main module does not need package google.golang.org/appengine)
The text was updated successfully, but these errors were encountered: