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

Update from github.com/golang/protobuf to google.golang.org/protobuf #382

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

lfittl
Copy link
Member

@lfittl lfittl commented Feb 25, 2023

The old module, github.com/golang/protobuf, has been deprecated a while, and the newer API has a slightly improved interface for the timestamp type as well, avoiding a potential error that needs to be handled (that we've traditionally ignored anyway in our own code).

Note there is a remaining caller of the old module in Google's appengine module, which gets vendored in unnecessarily via x/oauth2 (golang/oauth2#615).

In passing, update the protoc-gen-go tool as well to the version hosted in the new repository.

Depends on pganalyze/collector-snapshot#30 for the "go_package" option which is now required by protoc-gen-go.

@lfittl
Copy link
Member Author

lfittl commented Feb 26, 2023

The tests here currently fail because #380 isn't merged yet, but this PR uses newer collector-snapshot protobuf definitions introduced by that PR.

The old module, github.com/golang/protobuf, has been deprecated a while,
and the newer API has a slightly improved interface for the timestamp
type as well, avoiding a potential error that needs to be handled (that
we've traditionally ignored anyway in our own code).

Note there is a remaining caller of the old module in Google's appengine
module, which gets vendored in unnecessarily via x/oauth2 (golang/oauth2#615).

In passing, update the protoc-gen-go tool as well to the version hosted
in the new repository.

Depends on pganalyze/collector-snapshot#30
@lfittl lfittl requested a review from a team February 28, 2023 04:42
Copy link
Contributor

@keiko713 keiko713 left a comment

Choose a reason for hiding this comment

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

🧞

@lfittl lfittl merged commit 08cb680 into main Feb 28, 2023
@lfittl lfittl deleted the update-protobuf-library branch February 28, 2023 07:53
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.

None yet

2 participants