安装失败(Installing failed)

在使用 VSCode 编写 go 时,编辑器提示安装一系列内容。

重试多次均失败。

Installing 6 tools at D:\go-path\bin
  go-outline
  go-symbols
  guru
  gorename
  goreturns
  golint

Installing github.com/ramya-rao-a/go-outline FAILED
Installing github.com/acroca/go-symbols FAILED
Installing golang.org/x/tools/cmd/guru FAILED
Installing golang.org/x/tools/cmd/gorename FAILED
Installing github.com/sqs/goreturns FAILED
Installing github.com/golang/lint/golint FAILED

6 tools failed to install.

go-outline:
Error: Command failed: d:\go\bin\go.exe get -u -v github.com/ramya-rao-a/go-outline
github.com/ramya-rao-a/go-outline (download)
Fetching https://golang.org/x/tools/go/buildutil?go-get=1
https fetch failed: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
package golang.org/x/tools/go/buildutil: unrecognized import path "golang.org/x/tools/go/buildutil" (https fetch: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
github.com/ramya-rao-a/go-outline (download)
Fetching https://golang.org/x/tools/go/buildutil?go-get=1
https fetch failed: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
package golang.org/x/tools/go/buildutil: unrecognized import path "golang.org/x/tools/go/buildutil" (https fetch: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)

有什么好办法能顺利安装吗?

另外我安装 go get -u github.com/gorilla/mux时却很顺利。

已邀请:

jdlau - https://www.jdscript.com/

赞同来自: DennisMao

没有科学上网,可以用这个来装 https://github.com/donnol/gox

lrita

赞同来自:

科学上网

yet

赞同来自:

科学上网是必备技能

haoc7 - http://cuihao.fun

赞同来自:

需要命令行设置代理, 比如

export http_proxy='***'
export https_proxy='***'

FireTheHole - 一个前端,莫名的对 Go 有种青睐。

赞同来自:

感受到了社区的热情,感激涕零! 感谢

要回复问题请先登录注册