bazel-skylib
bazel-skylib copied to clipboard
Add helper functions for module extensions as `modules`
Adds a new module modules with two helper functions for module extensions:
use_all_reposmakes it easy to return an appropriateextension_metadatafrom a module extension (if supported) to indicate that all repositories generated by the extension should be imported viause_repo.as_extensionturns a WORKSPACE macro into a module extension that usesuse_all_reposto automate the generation ofuse_repocalls.
@Wyverald Could you review this from the Bzlmod dev perspective? @tetromino Could you review this from the Bzlmod user perspective?
I can also add full e2e tests if desired.
@Wyverald Friendly ping
CI is failing due to the missing Python toolchain registration.
@Wyverald Tests are passing now.
@Wyverald Friendly ping
After the release of 7.1.0, I will add reproducible.