Incompatible with Bazel 6
In https://github.com/lalten/rules_appimage/actions/runs/12967356868/job/36169139114?pr=276, which tests rules_appimage compatibility with rules_pycross on Bazel 6 and Bzlmod, I'm getting:
ERROR: https://bcr.bazel.build/modules/rules_jvm_external/6.3/MODULE.bazel:101:13: name 'use_repo_rule' is not defined
ERROR: Error computing the main repository mapping: in module dependency chain <root> -> [email protected] -> [email protected] -> [email protected] -> [email protected]: error executing MODULE.bazel file for [email protected]
I don't have a problem with rules_pycross dropping Bazel 6 support. But it would be nice to set bazel_compatibility in the module() (https://bazel.build/rules/lib/globals/module#module) (or somehow make sure dependency compatiblity_levels are such that use_repo_rule isn't used)
Did [email protected] also drop support for Bazel 6? It seems like that's where we're picking up this dependency. If not, how did they solve this?
https://github.com/bazel-contrib/rules_jvm_external?tab=readme-ov-file#prerequisites claims compatibility with Bazel 6 which can't be true given https://github.com/bazel-contrib/rules_jvm_external/blob/a1d4e4f4267c1797b686719aa385e707b732c541/MODULE.bazel#L105 so that's probably their bug
looks like this isn't the first time people stumble over that: https://github.com/bazel-contrib/rules_jvm_external/issues/1055 :)
But actually the bazel_compatibility is set to [">=7.0.0"] in rules_jvm_external 6.3: https://github.com/bazel-contrib/rules_jvm_external/blob/2deeda518cf1ccb847c6e188bb3bf7d3f6fb7496/MODULE.bazel#L1-L5 so I'm not sure how Bazel picked up this dependency in the first place 🤔
@lalten turns out rules_python apparently dropped support for Bazel 6 as of v1.1.0. https://github.com/bazelbuild/rules_python/blob/main/CHANGELOG.md#110---2025-01-07
Pycross only depends on 1.0.0, but maybe Bazel 6 support was broken there as well.