Skip to content
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

Migrate context for go1.7, refactor fetch/http.go #164

Merged
merged 2 commits into from
Aug 17, 2016

Conversation

sehqlr
Copy link
Contributor

@sehqlr sehqlr commented Aug 17, 2016

Go 1.7 was released 2016-08-15, and one of the changes that was
introduced was moving the context library from
golang.org/x/net/context to just context.

This commit subs in the new package location, but there was one file
that needed extra work: fetch/http.go. This file used convenience
functions in x/net/context/ctxhttp, which was not included in the new
stdlib version of context. I replaced the call to ctxhttp.Get with
more common calls, plus a call to Request.WithContext.

Go 1.7 was released 2016-08-15, and one of the changes that was
introduced was moving the context library from
`golang.org/x/net/context` to just `context`.

This commit subs in the new package location, but there was one file
that needed extra work: `fetch/http.go`. This file used convenience
functions in `x/net/context/ctxhttp`, which was not included in the new
stdlib version of `context`. I replaced the call to `ctxhttp.Get` with
more common calls, plus a call to `Request.WithContext`.
@sehqlr
Copy link
Contributor Author

sehqlr commented Aug 17, 2016

This fixes #161

@ajhager
Copy link
Contributor

ajhager commented Aug 17, 2016

LGTM

@BrianHicks
Copy link
Contributor

What are these changes to vendor?

@sehqlr
Copy link
Contributor Author

sehqlr commented Aug 17, 2016

What? Dang it, I thought I got rid of that stuff :/

@BrianHicks BrianHicks merged commit 57fe283 into master Aug 17, 2016
@BrianHicks BrianHicks deleted the feature/context-package branch October 19, 2016 18:42
BrianHicks added a commit that referenced this pull request Dec 22, 2016
Migrate context for go1.7, refactor fetch/http.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants