-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inconsitent usage of context package #81
Comments
Can you please make sure you're using a recent version of Go? Type aliases were recently introduced to the language, and they get around this problem of legacy code using old struct names. |
mm I am using 1.9.7? |
Hmm, 1.9.7 should have type aliases. I saw this error before, but once I updated my dependencies it went away. I'll see if I can get rid of |
thanks in advance! |
After I used go dep init for my project the issue was resolved! so no urgency @kyessenov |
Great. I'd prefer to keep using the old context package. There are some good arguments here gogo/protobuf#390. |
Let's wait a few months before changing the package (so all the underlying gogo/go issues get ironed out). |
Generated API uses golang.org/x/net/context".Context should use context".Context
github.com/envoyproxy/go-control-plane/pkg/server
../github.com/envoyproxy/go-control-plane/pkg/server/server.go:65:41: cannot use server literal (type *server) as type Server in return argument:
*server does not implement Server (wrong type for FetchClusters method)
have FetchClusters("context".Context, "github.com/envoyproxy/go-control-plane/envoy/api/v2".DiscoveryRequest) ("github.com/envoyproxy/go-control-plane/envoy/api/v2".DiscoveryResponse, error)
want FetchClusters("golang.org/x/net/context".Context, "github.com/envoyproxy/go-control-plane/envoy/api/v2".DiscoveryRequest) ("github.com/envoyproxy/go-control-plane/envoy/api/v2".DiscoveryResponse, error)
Compilation finished with exit code 2
The text was updated successfully, but these errors were encountered: