windows之go get报错

地下库 2020-01-04

windows之go get报错

C:\Users\ASUS>go get github.com/grafana/grafana
# cd .; git clone -- https://github.com/grafana/grafana D:\code\go\src\github.com\grafana\grafana
Cloning into ‘D:\code\go\src\github.com\grafana\grafana‘...
fatal: unable to access ‘https://github.com/grafana/grafana/‘: error setting certificate verify locations:
  CAfile: D:/Program Files/Git/mingw64/bin/curl-ca-bundle.crt
  CApath: none
package github.com/grafana/grafana: exit status 128

解决办法:

关闭证书校验

git config --system http.sslverify false

相关推荐