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

Remove a direct use of golang.org/x/net/http2 #1843

Merged
merged 2 commits into from
Feb 13, 2023

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Feb 10, 2023

A version of golang.org/x/net/http2 is bundled into the standard library: https://github.com/golang/go/blob/master/src/net/http/h2_bundle.go and here we certainly don't care about the specific version or details.

So just enable use of the built-in one.

Note that this is very unlikely to actually remove the dependency from binaries, because it is required by google.golang.org/grpc/internal/transport, and that one has quite a few uses; so most of the benefit right now is just
one less package to get dependency update PRs from.


Also replace deprecated Dial by DialContext.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
A version of golang.org/x/net/http2 is bundled into
the standard library:
https://github.com/golang/go/blob/master/src/net/http/h2_bundle.go

and here we certainly don't care about the specific version or details.

So just enable use of the built-in one.

Note that this is very unlikely to actually remove the dependency
from binaries, because it is required by google.golang.org/grpc/internal/transport,
and that one has quite a few uses; so most of the benefit right now is just
one less package to get dependency update PRs from.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@TomSweeneyRedHat
Copy link
Member

LGTM

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vrothberg vrothberg merged commit 9e3e52a into containers:main Feb 13, 2023
@mtrmac mtrmac deleted the native-http2 branch February 13, 2023 15:07
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