-
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: go mod tidy does not fail when ambiguous import path found #28685
Comments
@jadekler I don't see anything wrong with the above, indeed a quick repro works just fine (results):
I wonder however, if instead of:
you actually meant to add the reverse dependency, i.e.:
Because if so, that will have caused a problem. Reason being, when the
The way to fix this is to either tag a new version of the main module at the same commit where the
cc @rsc @bcmills for any opinions on whether |
AH. Sorry, this is my mistake. I'm using intellij, and it seems my auto-import pulled in some other, similarly-named-but-not-correct-path variable. Sorry again, user error. Although my question is solved (thanks again @myitcv), I'll leave this open for y'all to close at your discretion if you want to discuss the question posed at the end of @myitcv post. |
If I understand correctly, this is a duplicate of #27063. |
I perform the following steps:
Why does
go mod
think that pkg_a does not need a require statement for pkg_b?The text was updated successfully, but these errors were encountered: