visual-go 安装div插件失败

发布于 2022-09-12 01:51:53 字数 1318 浏览 10 评论 0

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文