-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
go mod graph list dependencies that aren't expected and contradicts go mod why #28171
Comments
Hence Refreshing on the documentation for
So in summary:
Everything appears to be working as expected here so I'm going to speculatively close this issue, but please shout if I've missed anything. |
Thanks for the answer @myitcv. That makes a lot more sense. So,
As part of the path, there is Same for
So, I guess there is no flag to get the list of imported packages, according to build flags (no test, excuded files) apart from building the binary itself and opening the package manifest inside the binary introduced by Go 1.11? |
I think you're after
To get a list of non-standard library dependencies you need to get a bit more creative:
I've been planning to do a "Go Modules By Example" on the use of |
Makes a lot of sense now! Yeah, a Go Modules By Example would be awesome! 👍 Thanks again for your answers. |
See also #27900. |
What version of Go are you using (
go version
)?go version go1.11.1 linux/amd64
Does this issue reproduce with the latest release?
Yes (1.11.1)
What operating system and processor architecture are you using (
go env
)?What did you do?
Clone https://github.com/ubuntu/ubuntu-report (outside of
GOPATH
)What did you expect to see?
I was expecting to see similar behavior for testify and gomega:
go mod graph
output or none (I was expecting "none" as those are indirect dependencies)go mod why
to require -m for both, as both are needed directly or indirectly bylogrus.test
.What did you see instead?
I can't spot why there is a difference in those outputs for similar kind of indirect imports to me.
The text was updated successfully, but these errors were encountered: