You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go 1.7 moves the golang.org/x/net/context package into the standard library as context.
From golang/crypto notes:
acme, acme/autocert: switch to Go 1.7+ context package
The standard library context package has been available since Go 1.7,
and the Go build dashboard (build.golang.org) only tests master and
the past two releases.
Also, the acme package makes no backwards compatibility guarantees,
not that I expect this to influence many people.
Possible Fix
If using Go < 1.7.0 import "golang.org/x/net/context"
If using Go 1.7+ import "context"
For the most part - Just upgrade Go to 1.7+
Caveat
Does labstack echo require Go 1.7+?
I had to make these changes manually in the crypto erratic files but i wish there was a standard way echo or crypto took care of this internally to avoid surprises. I so wish we had a try/except for imports like that.
The text was updated successfully, but these errors were encountered:
Description
My server hosted in PaaS uses the default provided Go version 1.5.2 . Until recently it ran well and then i started getting the above errors.
Problem Origin
Problem arises from the
golang/crypto package
which requires Go 1.7+. See below commit from 6 days ago.golang/crypto@88915cc?_pjax=%23js-repo-pjax-container
From the Go 1.7 release notes:
From golang/crypto notes:
Possible Fix
If using Go < 1.7.0
import "golang.org/x/net/context"
If using Go 1.7+
import "context"
For the most part - Just upgrade Go to 1.7+
Caveat
Does labstack echo require Go 1.7+?
I had to make these changes manually in the crypto erratic files but i wish there was a standard way echo or crypto took care of this internally to avoid surprises. I so wish we had a try/except for imports like that.
The text was updated successfully, but these errors were encountered: