Skip to content

chore: replace rules_proto with com_google_protobuf#2487

Merged
rickeylev merged 1 commit intobazel-contrib:mainfrom
rickeylev:chore.rm.rules_proto.dependency
Dec 9, 2024
Merged

chore: replace rules_proto with com_google_protobuf#2487
rickeylev merged 1 commit intobazel-contrib:mainfrom
rickeylev:chore.rm.rules_proto.dependency

Conversation

@rickeylev
Copy link
Copy Markdown
Collaborator

rules_proto is deprecated and recent versions simply forward onto com_google_protobuf.
Older versions (e.g. 6.x used by us today), however, use the rules_proto or native
(Bazel builtin) implementation. When those older versions are used with Bazel 9,
which has removed various proto things, errors occur.

To fix, switch to using com_google_protobuf directly. More recent versions of rules_proto
just forward onto com_google_protobuf anyways, so this just removes the extra dependency
and having to deal with WORKSPACE setup.

Work towards #2469

@rickeylev rickeylev requested a review from aignas as a code owner December 9, 2024 04:02
Copy link
Copy Markdown
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

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

We don't need to modify our MODULE.bazel?

@rickeylev rickeylev added this pull request to the merge queue Dec 9, 2024
Merged via the queue into bazel-contrib:main with commit a7b7126 Dec 9, 2024
@rickeylev rickeylev deleted the chore.rm.rules_proto.dependency branch May 16, 2025 02:46
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