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 comment

Leave a comment

Your email address will not be published.

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