Bazel rules for jq
Include this in your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "slamdev_rules_jq",
url = "https://github.com/slamdev/rules_jq/releases/download/0.0.0/slamdev_rules_jq-v0.0.0.tar.gz",
sha256 = "",
)
load("@slamdev_rules_jq//jq:repositories.bzl", "jq_register_toolchains", "rules_jq_dependencies")
rules_jq_dependencies()
jq_register_toolchains(
name = "jq1_7",
jq_version = "1.7",
)
note, in the above, replace the version and sha256 with the one indicated in the release notes for rules_jq.