-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Move to Standard library Context package #420
Comments
Yep, I was waiting for 1.8 to drop and then make the switch in master. I'll start prepping for that now. |
Can't wait! |
How do we use go-kit with go version 1.7.4 in the meantime ? |
@ziyadparekh you keep importing |
@groob Thanks for the quick reply. The main error it throws is that it cant find the context http package inside the http transport package. And when i try to Apologies for all the questions, but getting the right environment set up is a real pain. Here is the error:
|
Can you post the actual error getting instead of describing it? The slack #go-kit channel might be a better place to debug this issue. |
@groob Sorry about that. Posted the actual error in an edited version of the comment. I'll get myself set up on the Slack channel as well. In case you didnt see it, here is the error:
|
|
We did a bit of an investigation on slack. It appears that you can run into some issues if you have
This resolves the issue for me, if anyone else runs into similar errors. |
Done. |
Context is now a Standard Go library. It is the same code as
golang.org/x/net/context
.The only thing that is missing is
ctxhttp
used in only for HTTP microservice clients.I have a suggestion. To add a new branch to the main go-kit repository that uses the standard Context package and the
ctxhttp
implementation.The code with these changes is available in GrimmKull fork in a separate 1.7context branch.
What do you guys think?
P.S.:
If anyone wants to use this before it gets moved to the main repository you can use vendoring.
Example:
govendor fetch "github.com/go-kit/kit/endpoint::github.com/GrimmKull/kit/[email protected]"
The text was updated successfully, but these errors were encountered: