Skip to content

Use golang/protobuf instead of gogo/protobuf #109

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

Open
wants to merge 158 commits into
base: main
Choose a base branch
from

Conversation

ebroberson
Copy link
Contributor

Summary

gogo/protobuf has been deprecated for years. We should be using up-to-date protobufs provided by google.golang.org/protobuf. In order to fit our use cases, a protobuf plugin (protoc-gen-go-bbs) has been created to catch any customizations we want to add.

Backward Compatibility

Breaking Change? No

Move optional to beginning of line
Remove json_name definitions where not needed
Remove extra Proto for ProtoRoutes
Regen protos
Rearrange some code for scope changes
Remove unnecessary check on len(msg.Enums)
Regen protos
@geofffranks
Copy link
Contributor

I raised a couple questions, and fund a number of spots that could use either cleanup, or uncommenting depending on if the code is actually needed anymore.

I don't fully understand all the reasons for protoc-gen-bbs, and trying to understand how it's templating the generated code is breaking my brain.

This is very impressive, well done!

Add performance results for old (gogo) protobufs
@ebroberson ebroberson force-pushed the protobuf-with-plugin branch from 12466ec to c60c742 Compare March 14, 2025 21:24
Regenerate protos
@ebroberson ebroberson force-pushed the protobuf-with-plugin branch from d5229a3 to ab3dffc Compare March 24, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants