VScode安装go插件失败,即使翻墙也没用,安装插件会报错如下

Installing github.com/golang/lint/golint FAILED

Installing github.com/cweill/gotests/... FAILED

Installing github.com/derekparker/delve/cmd/dlv SUCCEEDED

8 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.

输入下面三条命令

mkdir -p $env:GOPATH/src/golang.org/x/

cd $env:GOPATH/src/golang.org/x/

git clone https://github.com/golang/tools.git

在powershell里敲完再点安装就能成功。

这个问题翻墙也解决不了问题。