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

Upgrade to Bazel 8 #78

Open
wants to merge 12 commits into
base: lucid-master
Choose a base branch
from
Open

Upgrade to Bazel 8 #78

wants to merge 12 commits into from

Conversation

jadenPete
Copy link

This PR upgrades the ruleset to Bazel 8. It should also make the upgrade to future Bazel versions easier by enabling a number of --incompatible_* flags. These enforce that we're not using deprecated features that will be removed in a future major Bazel version.

Note that I wasn't able to enable path mapping because the same bug that prevented us from enabling it with Bazel 7 seems to be pervasive in Bazel 8 as well. I'll look into that soon; I just wanted to get us upgraded first.

Jaden Peterson added 10 commits January 17, 2025 13:30
Bazel 8 deprecates the rulesets bundled with Bazel (which includes the
Protobuf rules) in favor of their Starlark-ified equivalents. For that
reason, we switch to the `protobuf` ruleset for `proto_library` and
`java_proto_library`.

In doing so, we can't use `com.github.os72:protoc-jar` because the
version of protoc it bundles is extremely out of date and incompatible
with the version of protobuf provided by the Starlark-ified protobuf
ruleset. In its place, we use the protoc provided by that ruleset.
@jadenPete jadenPete requested a review from jjudd January 17, 2025 21:52
@jadenPete jadenPete self-assigned this Jan 17, 2025
Jaden Peterson added 2 commits January 22, 2025 17:27
v0.7.1 doesn't use the Starlark-ified protobuf rules.
…ction_env

The former is deprecated and has been replaced with the latter.
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.

1 participant