Skip to content

Conversation

@nalind
Copy link
Member

@nalind nalind commented Feb 16, 2017

Remove pkg/ioutils's cancelReadCloser type and the vendored copy of golang.org/x/net/context which it needed, neither of which was used anywhere else in here. This should let us avoid having to deal with potential incompatibilities with the standard library's context package, which was introduced in golang 1.7.

@nalind nalind force-pushed the drop-cancelreadcloser branch from 9d89c23 to b3f0a41 Compare February 16, 2017 18:56
@erikh
Copy link
Contributor

erikh commented Feb 16, 2017

I hope it's ok if I jump in here. I don't think this is going to resolve any conflicts here. The library should work just fine on 1.7. It's that 1.6 and below will be unable to process the "context" import that will be in many libraries.

@nalind
Copy link
Member Author

nalind commented Feb 16, 2017

Of course it's ok, and I appreciate the info. The cancelReadCloser implementation was importing golang.org/x/net/context, so I thought any incompatibility would be with code that might try to pass in a context.Context from 1.7 where a golang.org/x/net/context.Context was expected, or vice-versa. I must be missing something here.

@erikh
Copy link
Contributor

erikh commented Feb 16, 2017 via email

@nalind
Copy link
Member Author

nalind commented Feb 17, 2017

No worries.

nalind added 2 commits March 6, 2017 14:00
Remove pkg/ioutils's cancelReadCloser type and the vendored copy of
golang.org/x/net/context which it needed, neither of which was used
anywhere else in here.  This should let us sidestep any potential
incompatibilities with the standard library's context package, which was
introduced in golang 1.7.

Signed-off-by: Nalin Dahyabhai <[email protected]>
Signed-off-by: Nalin Dahyabhai <[email protected]>
@nalind nalind force-pushed the drop-cancelreadcloser branch from b3f0a41 to 8d8b96f Compare March 6, 2017 19:03
@nalind nalind merged commit 8d8b96f into containers:master Mar 7, 2017
@nalind nalind deleted the drop-cancelreadcloser branch June 19, 2017 16:03
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.

2 participants