-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: "connection refused" from git2.likeit.cn #37943
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
This looks like a server issue. It appears that the server at Please verify that the server response follows the protocol described in https://tip.golang.org/cmd/go/#hdr-Remote_import_paths. (You can check the server response directly by running |
The server does NOT has https, but http returned 200: $ curl -vsL https://git2.likeit.cn/go/audit?go-get=1
$ curl -vsL http://git2.likeit.cn/go/audit?go-get=1
|
Did the |
@bcmills yes.
|
Change https://golang.org/cl/225937 mentions this issue: |
For #37943 Change-Id: Ib8ba5d846f41afc0047c33b8145918d93326cdd0 Reviewed-on: https://go-review.googlesource.com/c/go/+/225937 Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Michael Matloob <[email protected]>
I'm wondering where the Are you still able to reproduce the original error message? (Is it possible that the server's |
Another possibility — does your |
I have tried insteadOf in gitconfig, but it was not there anymore. I will try to reproduce the problem. |
@bcmills the problem is reproducable:
|
That error message is substantially different from the one you posted originally. All of those errors are in checksum verification, which suggests that the module is not available to the public checksum database — probably you need to set |
@bcmills setting both GOPRIVATE and GOINSECURE solved the problem. Thanks |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. Using the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I just try to migrate my project to use go mod:
go mod init
to create an emptygo.mod
filego build .
in the project folder containinggo.mod
.What did you expect to see?
Expect GO to download dependencies.
What did you see instead?
i.e. the go module system insist on using HTTPS. As seen in the
go env
output above, the GOINSECURE variable is set togit2.likeit.cn
.The text was updated successfully, but these errors were encountered: