visual-go 安装div插件失败

vs-code和go语言开发,
点击上图的
image.png!
出现下面的错误

go.toolsGopath setting is not set. Using GOPATH d:\GoPath
Installing 1 tool at d:\GoPath\bin in module mode.
  dlv

Installing github.com/go-delve/delve/cmd/dlv FAILED

1 tools failed to install.

dlv:
Error: Command failed: D:\Go\bin\go.exe get -v github.com/go-delve/delve/cmd/dlv
Fetching https://github.com?go-get=1
https fetch failed: Get https://github.com?go-get=1: x509: certificate signed by unknown authority
go get github.com/go-delve/delve/cmd/dlv: git ls-remote -q origin in d:\GoPath\pkg\mod\cache\vcs\63acfe1b4020438bdd7781e1f371a19551cd11921a439dbc246d5dba4f37c588: exit status 128:
    fatal: unable to access 'https://github.com/go-delve/delve/': SSL certificate problem: self signed certificate in certificate chain
Fetching https://github.com?go-get=1
https fetch failed: Get https://github.com?go-get=1: x509: certificate signed by unknown authority
go get github.com/go-delve/delve/cmd/dlv: git ls-remote -q origin in d:\GoPath\pkg\mod\cache\vcs\63acfe1b4020438bdd7781e1f371a19551cd11921a439dbc246d5dba4f37c588: exit status 128:
    fatal: unable to access 'https://github.com/go-delve/delve/': SSL certificate problem: self signed certificate in certificate chain
阅读 1.6k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题