fix: add missing proto_library load to support Bazel 8#263
fix: add missing proto_library load to support Bazel 8#263tetromino merged 10 commits intobazelbuild:masterfrom
Conversation
cb96cb3 to
cf74bc7
Compare
|
Well, bzlmod seems to be happy, but workspace seems to be unhappy. Let's see if upgrading rules_java in workspace helps. bzlmod is using 7.12.2, so let's try that...ok, yeah that seems to have fixed that part But now an issue in rules_cc referencing Ivo mentioned that the name must be com_google_protobuf for workspace builds. Lets try upgrading rules_cc 0.1.0 ... ah nope: This sounds vaguely familiar. Lets try rules_cc 0.0.17 ... ah nope: Not sure if this is a step forward or backwards. Well, i think the issue there is paths.is_normalized came about in skylib 1.7, so lets try bazel_skylib 1.7.1 ... almost there ... success! well, pretty close, anyways. Bazel@head fails compiling absl, which is probably related to protobuf. Everything else is happy though. When I try this PR with rules_python, it gets past the error. (Eventually fails when compiling absl, but that is probably a separate issue specific to protobuf; maybe adding a |
|
For the remaining failures, we might want to just upgrade the platforms tested here (ubuntu1804 has a very old gcc and is no longer supported): stardoc/.bazelci/presubmit.yml Lines 4 to 6 in 91e429d Probably should be: |
|
@comius Does it look correct that autoload didn't work for Stardoc? |
|
When I try to build this PR on my Mac, I get a failure (some sort of java version incompatibility caused by rules_jvm_external). |
Ohhhhh this looks so familiar. 🤔
HTH |
…1 is installed Use a consistent set of dependencies for both bzlmod and WORKSPACE, as identified by bzlmod error messages. Remove various obsolete comments. Fix WORKSPACE - we now explicitly need to call rules_java_dependencies() and protobuf_deps(), thanks to recent java & proto changes. Set --java_runtime_version in .bazelrc to unbreak the build if a newer jdk (such as jdk-23) happens to be installed systemwide (this issue appears thanks to the rules_java dependency version bump).
|
@rickeylev - thanks for the tip, futzing with --java_runtime_version turned out to be the solution (the new rules_java picks up the systemwide installed jdk-23 on my machine and gets confused). |
|
@rickeylev - please check if everything still works for you after my commits Note the updated |
|
Yes, it works in rules_python |
The load for proto_library is missing, which breaks when used with Bazel 8.
Fixes #261