-
Notifications
You must be signed in to change notification settings - Fork 67
Update Bazel dependencies and load rules for bazel 9 compatibility #424
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
base: main
Are you sure you want to change the base?
Conversation
|
Need #423 to be taken care of first anyway |
ted-xie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! I left a few comments, but overall we can't accept submissions which change the ordering for things like attributes and starlark load()s, since the original ordering of the loads reflects the reality of our primary source of truth: the Google monorepo.
Other changes in this PR such as updating the dep versions and adding missing loads are greatly appreciated.
MODULE.bazel
Outdated
| # Shared maven repository for bazel_worker_java and protobuf dependencies | ||
| maven.install( | ||
| artifacts = [ | ||
| "com.google.protobuf:protobuf-java:4.33.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be necessary, right? In my mental model, if project A depends on project B that has a maven install, then project B's maven should be namespaced to that project, and project A shouldn't have to declare its deps.
| maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") | ||
| maven.install( | ||
| artifacts = [ | ||
| "com.google.protobuf:protobuf-java:4.33.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This definitely should not go here. We should not expect user projects to declare deps for deps of deps.
No description provided.