Releases: bazel-contrib/rules_jsonnet
Releases · bazel-contrib/rules_jsonnet
0.6.0
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
Release to support Bazel 6
0.5.0 README.md: codespell: overriden → overridden (#168)
Release to support Bazel 5
Release to support Bazel 5
go-jsonnet default
- Updates jsonnet to 0.15.0
- switch to go-jsonnet as default implementation
go-jsonnet support
- Added
tla_code_files
attribute tojsonnet_to_json
- Added support for go-jsonnet by passing in
--define jsonnet_port=go
and adding the new dependencies to yourWORKSPACE
file as shown in the readme.
The use of c++ version is deprecated and in the next version we will switch over to use go-jsonnet per default. Please report if you are running into any issues.
0.1.0
Major changes:
- Update to jsonnet 0.13.0
- Compatibility with Bazel 0.27
- Too many to count
0.0.3
Major changes:
- Use mirrored http_archive for hermetic builds
- Fix error when running jsonnet_to_json_test without golden file. (#10)
- Allow .libsonnet files in srcs (#11)
- Replace deprecated constant with a string (#14)
- Add data attributes to allow non-jsonnet importstr (#13)
- When testing, use jsonnet to canonicalize golden file before comparison (#16)
0.0.2
- Add repositories to local WORKSPACE
- Enable overriding jsonnet binaries and stdlib for Jsonnet
- Update to Jsonnet 0.8.8