Open peakschris opened 2 months ago
This error happens even when just trying to update the Bazel lockfile (MODULE.bazel.lock) via bazel mod deps --lockfile_mode=update
and not using pinning. More specifically, I get the above error when using Bazel 7.3.1. If I use 7.1.0, I get the following error instead:
ERROR: module extension "maven" from "@@rules_jvm_external~//:extensions.bzl" does not generate repository "maven", yet it is imported as "maven"
This appears to be the issue: https://github.com/bazelbuild/rules_jvm_external/blob/61e8eda72f8cafcecf8b2aef0ef62dd58bfa953d/private/extensions/maven.bzl#L436-L441
I was able to get it working by patching that out locally.
I'm seeing this issue with rules_jvm_external 6.1 and also 6.2:
my MODULE.bazel is: