go install third part package, unrecognized import path

Issue

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?

Solution

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.

Answered By – Mithril

Answer Checked By – David Marino (GoLangFix Volunteer)

Leave a Reply

Your email address will not be published.