Open mbland opened 2 weeks ago
Hi, @mbland, I've changed last_green
to latest
in https://github.com/bazelbuild/rules_scala/pull/1627
I understand it's not a robust solution, but I hope it will hold until bzlmod lands into rules_scala.
I'll ask you to rebase your PRs so I could merge them after review.
Sounds good, thanks! Did you want to keep this issue open until that point, or close it now, and/or open a new one to switch it back at that point?
Let's keep it open as actual issue is not fixed.
BTW, I pinpointed in a Bazel Slack thread with @shs96c the builds before and after the rules_java
7.9.0 bump from #1619:
And just to mention it explicitly here: bazelbuild/bazel: Remove rules_java_builtin in WORKSPACE prefix "fixes" the problem in Bazel 8, enabling WORKSPACE
builds to use rules_java
> 7.9.0. But as mentioned already, doing so would break WORKSPACE
for Bazel 6 and 7, which still have rules_java_builtin
in their WORKSPACE
prefix.
All CI jobs except "Bazel green head" pass for my PRs working towards #1482 with the following error:
After reviewing my notes from https://github.com/bazelbuild/rules_scala/commit/cd22d8896f209c37be8622f1dcc9770c2dc18f48, under
Bump to rules_java 7.9.0 for Bazel 7 compatibility
, it seems like ourWORKSPACE
builds can't be compatible with Bazel 6/7 and Bazel 8 at the same time. The basic issue is that for rules_java > 7.9.0, theWORKSPACE
prefix in Bazel 6/7 causes Java toolchains to register under a different type than what the rules are expecting later. This issue doesn't affect Bzlmod builds.Would it be possible to disable the "Bazel green head" builds until the Bzlmod compatibility lands, and then reenable that build with Bzlmod enabled?