cmd/go: duplicate proxy requests sent for
What is the URL of the page with the issue?
What is your user agent?
What did you do?
I serve my mod cache as proxy to validate the process of loading a package. I observe a different order of api calling to find the latest version.
What did you expect to see?
According to the description from module doc, I should see the sequence of calling
What did you see instead?
The text was updated successfully, but these errors were encountered:
The first request shows
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions
@mengzhuo Thanks for your reply, maybe the ending
The descriptions are as follows:
while my experiment shows
I think the code you shows before is the second request, The first request is
In the screenshot, I see two different requests for
I follow the code of
So I agree that the first
The contradiction is that I find pseudo-versions should not returned by
In this way, I confuse the effect of the second
I serve module cache as a proxy for the experiment. Though the layout is consistent with the GOPROXY protocol, pseudo-versions can be returned by
Indeed, but sometimes they are anyway, and we didn't want to break existing users by ignoring them entirely (see #32715).
In particular, sometimes they are needed in order to resolve