Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upcmd/go: go mod graph shows indirect dependencies as requirements of main module #27309
Comments
This comment has been minimized.
This comment has been minimized.
I am also facing this issue. [root@dev backend]# cat go.mod require ( |
This comment has been minimized.
This comment has been minimized.
@gopherbot add label modules |
note: I'm not sure why things like runc and other somewhat 'heavy' things are added here, and 'go mod graph' doesn't really explain anything. I've tried pruning and recreating both but they just come back. hopefully golang/go#27309 can provide some answers.
This comment has been minimized.
This comment has been minimized.
I believe this is working as intended. Quoting
The critical sentence is the last one. This might help: https://github.com/go-modules-by-example/index/blob/master/018_go_list_mod_graph_why/README.md cc @bcmills but I'm going to mark this as closed. |
This comment has been minimized.
This comment has been minimized.
|
What version of Go are you using (
go version
)?Go 1.11
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
What did you see instead?
Only happens with indirect dependencies.