How go get
under Windows works? Does it has its own git
command or rely on something external?
I've just downloaded the last Go for Windows, and when I do a go get
, I'm getting
fatal: unable to access 'https://go.googlesource.com/net/': SSL certificate problem: unable to get local issuer certificate
Here are the details:
C:\Users\myid>go version
go version go1.13.7 windows/amd64
C:\Users\myid>go get -v golang.org/x/tools/cmd/present
get "golang.org/x/net/websocket": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at //golang.org/x/net/websocket?go-get=1
get "golang.org/x/net/websocket": verifying non-authoritative meta tag
golang.org/x/net (download)
# cd .; git clone -- https://go.googlesource.com/net C:\Users\myid\go\src\golang.org\x\net
Cloning into 'C:\Users\myid\go\src\golang.org\x\net'...
fatal: unable to access 'https://go.googlesource.com/net/': SSL certificate problem: unable to get local issuer certificate
package golang.org/x/net/websocket: exit status 128
How to fix it?
I tried to apply git config --global http.sslVerify false
(from "Unable to resolve "unable to get local issuer certificate" using git on Windows with self-signed certificate"), but am getting this:
error: could not lock config file /z/.gitconfig: No such file or directory
Obviously it is from git bash as Z:
is my Home drive. More on that -- I'm using git bash, which works by itself (in it's own bash environment):
$ wc /z/.gitconfig
88 329 2435 /z/.gitconfig
However, that /z/
notation (instead of Z:
) is not working under Windows CMD.
Although the quick fix works, I'm still interested to know what's the best way to keep everything in harmony under Windows for this. thx.