Skip to content

rules_jq simplifies pull, validation, and use of new releases of the jq interpreter

License

Notifications You must be signed in to change notification settings

chickenandpork/rules_jq

 
 

Repository files navigation

Bazel rules for jq

Compatibility

jq-1.6 is compatible with linux/x64 and macos/x64 < osx-12.3 jq-1.7 is compatible with linux/x64, macos/x64, macos/arm (macos > 12.3)

Installation

Include this in your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_jq",
    url = "https://github.com/chickenandpork/rules_jq/releases/download/0.0.0/rules_jq-v0.0.0.tar.gz",
    sha256 = "",
)

load("@rules_jq//jq:repositories.bzl", "jq_register_toolchains", "rules_jq_dependencies")

rules_jq_dependencies()

jq_register_toolchains(
    name = "jq",
    jq_version = "1.7",
)

note, in the above, replace the version and sha256 with the one indicated in the release notes for rules_jq.

About

rules_jq simplifies pull, validation, and use of new releases of the jq interpreter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Starlark 100.0%