-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: "go get" can fail in a confusing way on the module path #44962
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
Comments
I think the
We should probably treat |
I think that falls under "noone should ever ever do this", so I don't think the error message should mention a parent module. I don't think we should even try to look for a parent module. |
Change https://golang.org/cl/331749 mentions this issue: |
That is, the lack of a corresponding package should cause the path to be interpreted as a module path, and then nothing should change because the main module is already (invariantly) the latest version of itself. |
#37700 is closely related. |
Issue was incidentally fixed by commit
It seems that issue can be closed for now. |
I found this weird error while writing a reproducer for #44961. Using x/tools as an example:
I'm not sure why the first
go get
gives that weird error message. I would expect the three commands to error in the same way.The text was updated successfully, but these errors were encountered: