-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Bump golang.org/x/net to go1.10 release commit #36894
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
Conversation
The primary need for this is x/net/context now is just a type alias to the stdlib context package. This makes issues with conflicts between "golang.org/x/net/context" and the stdib "context" go away (primarily a concern in interface definitions/implementations). Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #36894 +/- ##
==========================================
- Coverage 35.26% 34.94% -0.33%
==========================================
Files 614 614
Lines 45698 45698
==========================================
- Hits 16117 15969 -148
- Misses 27453 27633 +180
+ Partials 2128 2096 -32 |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I wonder is anything bad can happen if we do |
I think there's still dependencies that use the |
We should be able to change it since in the new x/net/context, The reason it was an issue before is because there were two different implementations of import "golang.org/x/net/context"
type Fooer interface {
Foo(ctx context.Context)
} You can't provide an implementation that looks like this: import "context"
type myFoo struct {}
func(myFoo) Foo(ctx context.Context) {} Until this bumped commit which takes advantage of https://github.com/golang/proposal/blob/master/design/18130-type-alias.md Where context in golang.org/x/net is no longer defining a new interface but rather just doing: "import context"
type Context = context.Context |
In that case, I'd say we should definitely look into using "context" instead 🤗 |
OK, let's see if this works: #36904 |
The primary need for this is x/net/context now is just a type alias to
the stdlib context package.
This makes issues with conflicts between "golang.org/x/net/context" and
the stdib "context" go away (primarily a concern in interface
definitions/implementations).
Came across this working on #36688