golang 1.13 solve the problem can not be downloaded go get

Reference: https://www.sunzhongwei.com/problem-of-domestic-go-get-unable-to-download?from=sidebar_new

Installation golang gin dependencies when no response for a long time, the last reported the following errors:

go get: upgrading golang.org/x/[email protected]: unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go get: upgrading golang.org/x/[email protected]: unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

Solution

Use seven cattle cloud go module mirror

golang 1.13 can be executed directly:

go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

Then again go get download gin depend on it.

Published 66 original articles · won praise 8 · Views 140,000 +

Guess you like

Origin blog.csdn.net/gnufre/article/details/104183578