-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: prefer to report mismatched module paths over mismatched major versions #34432
Comments
While debugging this issue I also got this output, not sure on how I did that though:
|
The chain reported by the first error message looks accurate:
That last error is because the module path declared by the |
There are two possible errors the
Both are correct; (1) is probably clearer, but the |
@brenol, could you give some more detail as to why you expected to see |
I actually tried to mean that I did not expect to see github.com/myesui/uuid anywhere in the go.mod file, as I don't see any references of it in |
About this one, I did not see it report anywhere in the go mod tidy command, neither in the go build/go test etc. One more thing: I feel like |
|
Sure, opened #34435. I don't want to make this issue a conversation, however, I have a few more questions:
The other question is if
|
Check the last three lines. (You have two dependencies in |
|
Sorry, tried to mean that I see no mention of About the |
Yep, this is expected: the reason |
I think the module resolution is working as designed here (and the I'm going to close this issue, but we'll certainly bear this report in mind when we're thinking about how to further improve the diagnostics. |
I’ve seen that trip other people up, and I agree with your assessment that 1 is clearer (significantly clearer, I think). What do you think about perhaps re-opening this issue and using it to track that change? (Or maybe there’s already another issue, or maybe a new one should be opened…) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Tried to run go mod tidy in github.com/twitchscience/kinsumer
What did you expect to see?
I expected it to report correctly that the project github.com/myesui/uuid is the one that uses gopkg.in/stretchr/testify.v1. However, it's reporting that twinj/uuid incorrectly is the one that is using.
What did you see instead?
How the module looks like:
The strangest thing is that I see no mention of myesui/uuid in the vendored directory.
The text was updated successfully, but these errors were encountered: