Replies: 1 comment 3 replies
-
I think in theory this could be possible if the module extension isn't required for building the tool. But to properly detect such potential cycle dependency require a lot of effort in Bazel. /cc @Wyverald Is my understanding correct? Or there are bigger blockers I'm missing. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking at bzlmod/utils/librarian/librarian.bzl in examples repo, I can see that it conveniently gets a path to librarian.py (or .cmd) file that lives in the root and executes it.
But what if the (binary) file that I want to execute is not a simple .py (or .sh, or pre-built binary), but rather something that needs to be built, say C++ or Rust code. Ideally, it should be built by bazel before (!) module_extension runs.
I imagine this is not possible (currently), but I'm wondering how, conceptually, this could be solved. Would Bazel have to repeat phases iteratively to achieve that?
Beta Was this translation helpful? Give feedback.
All reactions