Fail when go get

One may comes across some error on install yaml.v2 using `go get`, like:

$ go get
package unrecognized import path ""

Usually it’s a network error, please try:

$ go get -v
https fetch failed.
import "": https fetch: Get x509: certificate signed by unknown authority
package unrecognized import path ""

If this is what you get, then just  type:

$ go get -insecure

And that’s all you need, enjoy 🙂

1 thought on “Fail when go get

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.