First of all, although it looks the same as the following questions
- How to fix git error: RPC failed; curl 56 GnuTLS
- git error:RPC failed,curl 56 GnuTLS recv error (-110), and
- "error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated", in which Hovo Asatryan has commented "it doesn’t solve the problem, I have tried it", and I've tried it too, and neither it worked for me.
it is NOT. as all those questions are on git but this is on go get:
$ go get -v -u golang.org/x/tools/cmd/goimports get "golang.org/x/tools/cmd/goimports": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at //golang.org/x/tools/cmd/goimports?go-get=1 get "golang.org/x/tools/cmd/goimports": verifying non-authoritative meta tag golang.org/x/tools (download) # cd .; git clone -- https://go.googlesource.com/tools /path/to/Go/src/golang.org/x/tools Cloning into '.../Go/src/golang.org/x/tools'... error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated. package golang.org/x/tools/cmd/goimports: exit status 128 None of the solution works for me, and I believe for anyone within a typical corporate dev environment:
- We access the Internet behind corporate firewall, thus any secure https access would fail unless special treated.
- Apart from accessing public https git repos like above, https://go.googlesource.com/tools, which is more or less an one off thing, we need to accessing our in house https TFS git repos all the times. Thus I cannot change the git https access method as other solution suggested.
- I tried to use
git config --global http.sslVerify falsebeforehand but the problem remains exactly the same.
So the question is, how can I let go get to tell git to relax on its security check?
I think that's the only option I have but I'm all ears.
PS. -insecure doesn't work either:
$ go get -v -insecure golang.org/x/sys/unix get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/unix?go-get=1 get "golang.org/x/sys/unix": verifying non-authoritative meta tag golang.org/x/sys (download) # cd .; git clone -- https://go.googlesource.com/sys /path/to/Go/src/golang.org/x/sys Cloning into '/path/to/Go/src/golang.org/x/sys'... error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated. package golang.org/x/sys/unix: exit status 128 PPS. curl -s https://go.googlesource.com/sys works just fine for me:
$ curl -s https://go.googlesource.com/sys <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>sys - Git at Google</title><link rel="stylesheet" . . .