mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-26 13:30:30 +00:00
19 lines
530 B
Python
19 lines
530 B
Python
"Module extensions for use with bzlmod"
|
|
|
|
load(
|
|
"@aspect_bazel_lib//lib:repositories.bzl",
|
|
"register_copy_to_directory_toolchains",
|
|
"register_jq_toolchains",
|
|
"register_yq_toolchains",
|
|
)
|
|
|
|
def _toolchain_extension(_):
|
|
register_yq_toolchains(register = False)
|
|
register_jq_toolchains(register = False)
|
|
register_copy_to_directory_toolchains(register = False)
|
|
|
|
# TODO: some way for users to control repo name/version of the tools installed
|
|
ext = module_extension(
|
|
implementation = _toolchain_extension,
|
|
)
|