-
Notifications
You must be signed in to change notification settings - Fork 80
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
Fix java toolchain config to allow for use with Bazel 6 #273
Conversation
871a9a7
to
9f0230a
Compare
The java tests failure on MacOS seems to be resolved by setting |
9f689e6
to
c16bd7c
Compare
default_java_toolchain.bzl and local_java_repository.bzl are included from Bazel commit 3d5c5d746b286c840ba5cfd437d93d8d11995e02 and modified to add support for nix constraints. Closes #272
4459374
to
f3d68f3
Compare
This is rebased, tested with Bazel 6, and now reset to Bazel 5, and ready for review. I've created #299 to track the lingering Java test dependency issue on MacOS, and plan for the removal of the |
This causes a warning instead of an error for strict Java dependencies on MacOS. This is a temporary workaround for #299 and should be removed as soon as that issue is resolved.
f3d68f3
to
10a8662
Compare
@avdv I just wanted to follow up about this PR! Is there anything else this needs before it can be merged? |
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.
Thanks for reminding me @tshaynik 😄 , looks good!
Resolves #272
This change allows for using rules_nixpkgs with Bazel 6, by fixing an issue caused by changes in how java toolchains are configured.
This works by pulling in versions of local_java_repository.bzl and default_java_toolchain.bzl from a newer version of Bazel, and reapplying the the changes necessary to enforce the constraint that nix be present.
TODO before merging: