-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel downstream projects are broken due to out-dated rules_java version with Bazel@HEAD #18551
Labels
breakage
P1
I'll work on this now. (Assignee required)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
Comments
meteorcloudy
added
P1
I'll work on this now. (Assignee required)
breakage
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
labels
Jun 1, 2023
I couldn't find any easy fix for this issue, so rolling back the breaking change for now. |
copybara-service bot
pushed a commit
that referenced
this issue
Jun 1, 2023
*** Reason for rollback *** Broke too many downstream projects #18551 *** Original change description *** Respect rules_java as the source of truth for java toolchains Context: #18373 Currently the definitions of java tools, remote JDKs, and Java toolchains are duplicated in both Bazel sources and rules_java, and they go out of sync quite often. By default, the default toolchains shipped with the Bazel binary uses the one in Bazel sources except when Bzlmod is enabled. https://github.com/bazelb... *** PiperOrigin-RevId: 537001124 Change-Id: I46cb502328d5c56776b469601cdff0c364164a3a
Introducing |
amishra-u
pushed a commit
to amishra-u/bazel
that referenced
this issue
Jun 7, 2023
… try) Rolling forward bazelbuild@975866a (which was rollbacked at bazelbuild@d51c75f) with fixes. - Introduce a `rules_java_builtin` repo in WORKSPACE prefix to avoid conflict with user defined rules_java. - `@bazel_tools//tools/jdk/*.bzl` loads from `rules_java_builtin` through repo-mappings. - `@local_jdk` was overridden in `jdk.WORKSPACE` to add repo_mapping for `rules_java`. - `jdk.WORKSPACE` explicitly loads from `rules_java_builtin` for JDK definitions and java toolchain definitions. - Allow using `__SKIP_WORKSPACE_PREFIX__` and `__SKIP_WORKSPACE_SUFFIX__` in WORKSPACE comment. - Fixed many tests by adjusting the WORKSPACE file content. - Re-export more symbols from `@bazel_tools` to be backward-compatible. Fixes bazelbuild#18551 Related: - bazelbuild#18373 - bazelbuild/rules_java#110 - bazelbuild#18423 Closes bazelbuild#18558. PiperOrigin-RevId: 538483417 Change-Id: I5223eec2c4b10131fc8c5b342237385ff2f56413
copybara-service bot
pushed a commit
that referenced
this issue
Jun 14, 2023
…od is enabled). Related #18551 PiperOrigin-RevId: 540213563 Change-Id: I37051f3ded24e3b7073401b8549a959e392e0dca
traversaro
pushed a commit
to traversaro/bazel
that referenced
this issue
Jun 24, 2023
…od is enabled). Related bazelbuild#18551 PiperOrigin-RevId: 540213563 Change-Id: I37051f3ded24e3b7073401b8549a959e392e0dca
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breakage
P1
I'll work on this now. (Assignee required)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
Context
In #18373, we agreed on using rule sets as the source of truth to load toolchains and required dependencies for specific languages (e.g. rules_java, rules_cc). This reduces the duplicated information in Bazel's default
@bazel_tools
repo and fits our long term goal to make Bazel language-agnostic.975866a implemented that for rules_java. Unfortunately, this is a breaking change because Bazel now relies on a compatible rules_java version to be defined.
bazel_tools
module specify a new rules_java version, and thanks to minimal version resolution, we'll always get a compatible rules_java version.Related:
Broken projects
https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3066
Potential Solutions
rules_java
in WORKSPACE suffix torules_java_builtin
.The text was updated successfully, but these errors were encountered: