-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: tries to resolve github.com as a module #33351
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
Is the issue that we're trying to resolve Or is the issue that, having discovered |
Note that avoiding those particular paths is just an optimization, and the requests are made in parallel so the optimization would have relatively little effect on overall latency. (To my knowledge, there is nothing currently stopping GitHub from using |
There is an interesting implication for program encapsulation, in that a top-level However, the presence of such a module would be relatively easy to detect: if it can be fetched through (Besides, projects hosted on |
Ah, it could be my misunderstanding. I thought I remembered |
@myitcv I believe this is the recent change in go1.13. For users like me who don't know the underlying go command implementation the message "go: finding github.com v0.1.11" will be quite surprising. Shouldn't the message be hidden by default? |
@hyangah, that's more the purview of #26152. (See #26152 (comment) for my current thoughts on that.) |
Since as far as we're aware the impact on overall latency is negligible, we don't plan to change this — I don't think it would even be worth the code complexity as a contributed change. Closing. |
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?
Simply reproduced via the following (with a clean
GOPATH
):v0.1.11
does not exist; that's expected.What did you expect to see?
No attempt to resolve
github.com
orgithub.com/myitcv
What did you see instead?
As above.
cc @bcmills @jayconrod
The text was updated successfully, but these errors were encountered: