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

message/pb: stop using gogo/protobuf #277

Merged
merged 1 commit into from
Nov 19, 2021
Merged

message/pb: stop using gogo/protobuf #277

merged 1 commit into from
Nov 19, 2021

Conversation

mvdan
Copy link
Contributor

@mvdan mvdan commented Nov 19, 2021

(see commit message)

As a project, it has mostly been unmaintained since 2019.
Having three implementations of protobuf in graphsync is unfortunate;
we really shouldn't need golang/protobuf and gogo/protobuf.

Luckily, we only used gogo to set two fields as non-nullable,
and that detail was never actually used in practice.
Those extra bits of info would only be used by protoc-gen-gofast,
gogo's generator, while we've always used the regular protoc-gen-go.

As a bonus, golang/protobuf was only pulled by gogo/protobuf,
so we can drop both from go.mod.

The generated code doesn't change at all in terms of functionality.
@welcome

This comment has been minimized.

Copy link
Collaborator

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

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

LGTM

@hannahhoward hannahhoward merged commit 9d4760f into ipfs:main Nov 19, 2021
rvagg pushed a commit that referenced this pull request Nov 30, 2021
As a project, it has mostly been unmaintained since 2019.
Having three implementations of protobuf in graphsync is unfortunate;
we really shouldn't need golang/protobuf and gogo/protobuf.

Luckily, we only used gogo to set two fields as non-nullable,
and that detail was never actually used in practice.
Those extra bits of info would only be used by protoc-gen-gofast,
gogo's generator, while we've always used the regular protoc-gen-go.

As a bonus, golang/protobuf was only pulled by gogo/protobuf,
so we can drop both from go.mod.

The generated code doesn't change at all in terms of functionality.
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
@mvdan mvdan deleted the no-gogo branch December 15, 2021 14:17
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