Environmental description
Win10
Go 1.17.3
VS Code 1.62.2
Problem phenomenon
When developing the Go program with vscode, you will be prompted that the go plug-in is not installed, and click Install all
A bunch of installation failures will be reported
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.
Solution:
use https://goproxy.io agent
Set the go environment variable in the CMD window
go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct
Close, reopen vscode, and click Install all to complete the installation
Similar Posts:
- [Solved] Go get Error: “The command you provide is v/v0.9.74.mod, it is not well formed.”
- [Solved] Ubantu18.04 Use APT to install Go environment instruction Error
- How to Solve webdriver-manager Error
- [Solved] CURL Install Error: GnuTLS: The TLS connection was non-properly terminated. Unable to establish SSL connection.
- curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
- How to Solve devtools::install_github SSL/TLS connection failed
- Error reporting when using empirical decorators in vscode
- Python pip install three-party library unsuccessful error: WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available
- The error reported by golang when referring to a third-party package: no required module provides package [perfect solution]
- MAC Install homebrew Error: Failed to connect to raw.githubusercontent.com port 443: Connection refused error: