cmd/go: go get makes too many requests to a Git repository via HTTP #37988
Labels
GoCommand
cmd/go
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not tested.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have an HTTP server that implements both the go-get protocol and the Git HTTP protocol, and I noted that, when fetching from the
repo-root
reported after ago-get=1
request,go get
makes more than one request to the same endpoint.Here is a trace from the program, for
go get test.local/simple
:GET http://test.local/simple
returns:git clone http://test.local/:git/simple
only makes two requests.It seems that
go get
makes an additional request, cancelling the previous one. Why?The
simple
module only contains ago.mod
file and asimple.go
source file.Thanks
The text was updated successfully, but these errors were encountered: