2022-04-27 04:07:17 +00:00
|
|
|
"Module extensions for use with bzlmod"
|
|
|
|
|
|
|
|
load(
|
|
|
|
"@aspect_bazel_lib//lib:repositories.bzl",
|
2023-01-07 19:26:27 +00:00
|
|
|
"register_copy_to_directory_toolchains",
|
2022-04-27 04:07:17 +00:00
|
|
|
"register_jq_toolchains",
|
|
|
|
"register_yq_toolchains",
|
|
|
|
)
|
|
|
|
|
|
|
|
def _toolchain_extension(_):
|
|
|
|
register_yq_toolchains(register = False)
|
|
|
|
register_jq_toolchains(register = False)
|
2023-01-07 19:26:27 +00:00
|
|
|
register_copy_to_directory_toolchains(register = False)
|
2022-04-27 04:07:17 +00:00
|
|
|
|
|
|
|
# TODO: some way for users to control repo name/version of the tools installed
|
|
|
|
ext = module_extension(
|
|
|
|
implementation = _toolchain_extension,
|
|
|
|
)
|