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 removes an in-use indirect dependency from go.mod #27664
Comments
Do the other dependencies in the |
|
No,
|
I think this is working as designed, but please reopen if you disagree. |
Very possibly. I could have sworn @rsc said that a go.mod file after |
@bcmills Could you elaborate on what you mean by I'm interested in this because I'm seeing this same thing happen specifically with the same yaml package. When I was dependent on (I'm seeing this happen in stellar/go#1739.) |
@leighmcculloch, In contrast, |
@bcmills Thanks, that makes a lot of sense. In theory then as modules become the norm if all modules were to have a |
Over time the |
What version of Go are you using (
go version
)?go version go1.11 linux/amd64
What operating system and processor architecture are you using (
go env
)?It should be noted I'm running with
GO111MODULE=on
.What did you do?
What did you expect to see?
go mod tidy
keepsgopkg.in/yaml.v2
, an indirect dependency.What did you see instead?
go mod tidy
removesgopkg.in/yaml.v2
from go.mod, but not from go.sum.Intriguingly, running
go mod why gopkg.in/yaml.v2
yields:/cc @bcmills
The text was updated successfully, but these errors were encountered: