Setup
To use the Jsonnet rules, add the following to your MODULE.bazel
file:
bazel_dep(name = "rules_jsonnet", version = "0.6.0")
If you are using an older version of Bazel that does not support Bzlmod,
add the following to your WORKSPACE
file to add the external
repositories for Jsonnet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_jsonnet",
sha256 = "e09b3c086ee9a38ee0cedbff96719700bd0121d7884d0193664aff5ea320128d",
strip_prefix = "rules_jsonnet-0.6.0",
urls = ["https://github.com/bazelbuild/rules_jsonnet/releases/download/0.6.0/rules_jsonnet-0.6.0.tar.gz",
)
load("@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_repositories")
jsonnet_repositories()
load("@google_jsonnet_go//bazel:repositories.bzl", "jsonnet_go_repositories")
jsonnet_go_repositories()
load("@google_jsonnet_go//bazel:deps.bzl", "jsonnet_go_dependencies")
jsonnet_go_dependencies()
What's Changed
- Fix #166 by @sparkprime in #176
- Add MODULE.bazel to rules_jsonnet by @EdSchouten in #179
- Let rules_jsonnet use its own provider by @EdSchouten in #172
- Stop linking to google.github.io/jsonnet by @EdSchouten in #180
- Switch from Skydoc to Stardoc by @EdSchouten in #181
- Tidy up computation of import paths by @EdSchouten in #182
- Perform proper string concatenation in jsonnet_to_json() by @EdSchouten in #183
- Add an 'out_dir' option to jsonnet_to_json() by @EdSchouten in #184
- Use unified diff output in jsonnet_to_json_test() by @EdSchouten in #185
- Document extra_args by @EdSchouten in #186
- Prepare for releasing rules_jsonnet 0.6.0 by @EdSchouten in #187
- Correct the name of the resulting source tarball by @EdSchouten in #188
New Contributors
- @EdSchouten made their first contribution in #179
Full Changelog: 0.5.0...0.6.0