where the add_rules_cc_to_cxx.patch modifies cxx's MODULE.bazel file to include an explicit dependency on rules_cc, something that I found was necessary to allow Bazel to even attempt to build any targets in @cxx.rs//.
Unfortunately, this still fails due to a repo lookup failure that gets memorialized into the MODULE.bazel.lock file. The details are available in this minimal reproduction
I'm attempting to include CXX as a Bzlmod module. Since it is not published on the Bazel Central Registry I'm doing so via a
git_override
where the
add_rules_cc_to_cxx.patch
modifies cxx'sMODULE.bazel
file to include an explicit dependency onrules_cc
, something that I found was necessary to allow Bazel to even attempt to build any targets in@cxx.rs//
.Unfortunately, this still fails due to a repo lookup failure that gets memorialized into the
MODULE.bazel.lock
file. The details are available in this minimal reproductionhttps://github.com/tel/cxx_bzlmod_repro
I think this may be an error in
rules_rust
or howcrate_universe
is being configured, but I wanted to start here and escalate if necessary.