Bazel Version Constraints in BCR #2336
-
Hi, I was looking into adding LLVM18 to the BCR. I noticed there's already an entry for llvm-project 17.0.3, so I tried getting it to work. But apparently, it doesn't work with Bazel Versions >= 7.0 (I think this is because But there was no way to know this from the BCR entry. Is it possible/worthwhile to let us know which Bazel versions a module is supported on. Or, even to complain that the module might not work with your version of Bazel. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Theoretically folks should be annotating their MODULE.bazel with this compatibility: In which case you would be able to see it there. And it would fail earlier than some random bazel API change. I think thus far folks have been pretty lax on that, and it doesn't help you spot the case when a transitive dependency does encode this requirement and it hits you too. I would expect this to improve as more folks use bzlmod |
Beta Was this translation helpful? Give feedback.
Theoretically folks should be annotating their MODULE.bazel with this compatibility:
bazel-central-registry/modules/rules_apple/3.1.0/MODULE.bazel
Line 4 in e5914f4
In which case you would be able to see it there. And it would fail earlier than some random bazel API change. I think thus far folks have been pretty lax on that, and it doesn't help you spot the case when a transitive dependency does encode this requirement and it hits you too. I would expect this to improve as more folks use bzlmod