Reputation: 13718
Detail:
C:\>go get -u github.com/hidu/proxy-manager
package code.google.com/p/go.net/proxy: Get http://www.google.com/hangouts/: stopped after 10 redirects
package golang.org/x/crypto/blowfish: unrecognized import path "golang.org/x/crypto/blowfish"
package golang.org/x/crypto/cast5: unrecognized import path "golang.org/x/crypto/cast5"
package golang.org/x/crypto/salsa20/salsa: unrecognized import path "golang.org/x/crypto/salsa20/salsa"
I think maybe it because google is forbidden in china? How to solve this error?
Upvotes: 3
Views: 3901
Reputation: 3736
Trying proxy
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
Upvotes: 0
Reputation: 13718
I opened a issue here, solved by the help of repo owner.
The package I try to install is using godep
and go vendor
.
go vendor
need go 1.5 +, and the most important thing is :
export GO15VENDOREXPERIMENT=1
This command make install successful.
Upvotes: 2
Reputation: 1323183
Maybe it is also because code.google.com/p/go.net has been archived.
Make sure the project you are using includes a recent fork of that go.net project, like github.com/hashicorp/go.net
.
If you cannot change directly github.com/hidu/proxy-manager, you would need to fork it first.
Then change the import in hidu/proxy-manager/manager/client.go#L4
For the "unrecognized import path", see this thread:
One common explanation is that something is blocking access to the
golang.org
domain.
go get -v golang.org/x/crypto/blowfish
should tell you more.
That last part works for me:
C:\Users\vonc\prog>go get -v golang.org/x/crypto/blowfish
Fetching https://golang.org/x/crypto/blowfish?go-get=1
Parsing meta tags from https://golang.org/x/crypto/blowfish?go-get=1 (status code 200)
get "golang.org/x/crypto/blowfish": found meta tag
main.metaImport{Prefix:"golang.org/x/crypto",
VCS:"git",
RepoRoot:"https://go.googlesource.com/crypto"}
at https://golang.org/x/crypto/blowfish?go-get=1
get "golang.org/x/crypto/blowfish": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
golang.org/x/crypto/blowfish
Upvotes: 1