Skip to content

Releases: bazel-contrib/rules_jsonnet

0.6.0

04 Apr 20:02
62c7a43
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: 0.5.0...0.6.0

Release to support Bazel 6

16 Feb 22:19
7760d83
Compare
Choose a tag to compare
0.5.0

README.md: codespell: overriden → overridden (#168)

Release to support Bazel 5

16 Dec 15:23
d51e0a7
Compare
Choose a tag to compare

Release to support Bazel 5

go-jsonnet default

05 May 08:32
2a2e641
Compare
Choose a tag to compare
  • Updates jsonnet to 0.15.0
  • switch to go-jsonnet as default implementation

go-jsonnet support

04 Sep 11:42
Compare
Choose a tag to compare
  • Added tla_code_files attribute to jsonnet_to_json
  • Added support for go-jsonnet by passing in --define jsonnet_port=go and adding the new dependencies to your WORKSPACE 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

13 Jun 09:54
a6adce4
Compare
Choose a tag to compare

Major changes:

  • Update to jsonnet 0.13.0
  • Compatibility with Bazel 0.27
  • Too many to count

0.0.3

09 Feb 20:29
Compare
Choose a tag to compare

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

06 Jul 09:01
Compare
Choose a tag to compare
  • Add repositories to local WORKSPACE
  • Enable overriding jsonnet binaries and stdlib for Jsonnet
  • Update to Jsonnet 0.8.8