fix: expose bare jq/jq.exe binary (#20)
This commit is contained in:
parent
87cecb51a2
commit
885fcb3f6e
|
@ -178,11 +178,9 @@ def _jq_platform_repo_impl(repository_ctx):
|
|||
)
|
||||
build_content = """#Generated by lib/repositories.bzl
|
||||
load("@aspect_bazel_lib//lib/private:jq_toolchain.bzl", "jq_toolchain")
|
||||
jq_toolchain(name = "jq_toolchain", bin = select({
|
||||
"@bazel_tools//src/conditions:host_windows": ":jq.exe",
|
||||
"//conditions:default": ":jq",
|
||||
}), visibility = ["//visibility:public"])
|
||||
"""
|
||||
exports_files(["{0}"])
|
||||
jq_toolchain(name = "jq_toolchain", bin = "{0}", visibility = ["//visibility:public"])
|
||||
""".format("jq.exe" if is_windows else "jq")
|
||||
|
||||
# Base BUILD file for this repository
|
||||
repository_ctx.file("BUILD.bazel", build_content)
|
||||
|
|
Loading…
Reference in New Issue