Skip to content

Releases: zadlg/tree-sitter-bazel

v0.24.2

07 Oct 13:33
3d9fd21
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "tree-sitter-bazel", version = 0.24.2)

Using WORKSPACE

Paste this snippet into your file:

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

_VERSION_TAG = "0.24.2"
maybe(
  http_archive,
  name = "tree-sitter-bazel",
  urls = ["https://github.com/zadlg/tree-sitter-bazel/releases/download/v{version}/tree-sitter.tar.gz".format(
      version = _VERSION_TAG,
  )],
  sha256 = "7263b4593694c4d28f1678528171a22371331c9d63cc76e749129cb808875f07",
  strip_prefix = "tree-sitter-bazel-{version}".format(
      version = _VERSION_TAG,
  ),
)

# Fetches tree-sitter dependencies (bazel_skylib)
load("@tree-sitter-bazel//:repositories.bzl", "tree_sitter_repositories")

tree_sitter_repositories()

# Fetches the source code of tree-sitter.
load("@tree-sitter-bazel//:repositories.bzl", "tree_sitter_sources")

tree_sitter_sources()

# Loads tree-sitter dependencies (bazel_skylib)
load("@tree-sitter-bazel//:deps.bzl", "tree_sitter_dependencies")

tree_sitter_dependencies()

What's Changed

Full Changelog: v0.23.2...v0.24.2

v0.23.2

04 Oct 10:41
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "tree-sitter-bazel", version = 0.23.2)

Using WORKSPACE

Paste this snippet into your file:

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

_VERSION_TAG = "0.23.2"
maybe(
  http_archive,
  name = "tree-sitter-bazel",
  urls = ["https://github.com/zadlg/tree-sitter-bazel/releases/download/v{version}/tree-sitter.tar.gz".format(
      version = _VERSION_TAG,
  )],
  sha256 = "30c3cda2aae833b5b17fc3a9261a8028a976c05baca4670cbdf8ce931dcfb64c",
  strip_prefix = "tree-sitter-bazel-{version}".format(
      version = _VERSION_TAG,
  ),
)

# Fetches tree-sitter dependencies (bazel_skylib)
load("@tree-sitter-bazel//:repositories.bzl", "tree_sitter_repositories")

tree_sitter_repositories()

# Fetches the source code of tree-sitter.
load("@tree-sitter-bazel//:repositories.bzl", "tree_sitter_sources")

tree_sitter_sources()

# Loads tree-sitter dependencies (bazel_skylib)
load("@tree-sitter-bazel//:deps.bzl", "tree_sitter_dependencies")

tree_sitter_dependencies()

What's Changed

Full Changelog: v0.22.6...v0.23.2

v0.22.6

10 May 12:42
64ba1f1
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "tree-sitter-bazel", version = 0.22.6)

Using WORKSPACE

Paste this snippet into your file:

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

_VERSION_TAG = "0.22.6"
maybe(
  http_archive,
  name = "tree-sitter-bazel",
  urls = ["https://github.com/zadlg/tree-sitter-bazel/releases/download/v{version}/tree-sitter.tar.gz".format(
      version = _VERSION_TAG,
  )],
  sha256 = "1f7fa04f1c551c60f4602a9cc84dfe3ae033245b3dd3f21fcca012c087eb7798",
  strip_prefix = "tree-sitter-bazel-{version}".format(
      version = _VERSION_TAG,
  ),
)

# Fetches tree-sitter dependencies (bazel_skylib)
load("@tree-sitter-bazel//:repositories.bzl", "tree_sitter_repositories")

tree_sitter_repositories()

# Fetches the source code of tree-sitter.
load("@tree-sitter-bazel//:repositories.bzl", "tree_sitter_sources")

tree_sitter_sources()

# Loads tree-sitter dependencies (bazel_skylib)
load("@tree-sitter-bazel//:deps.bzl", "tree_sitter_dependencies")

tree_sitter_dependencies()

What's Changed

  • Open an issue for new releases. by @zadlg in #8
  • Update to v0.22.6. by @zadlg in #11
  • Enable layering_check feature and fix missing dependencies. by @zadlg in #12
  • Update INSTALL.md. by @zadlg in #13
  • Bump Bazel version to 7.1.2. by @zadlg in #14

Full Changelog: v0.22.5...v0.22.6

v0.22.5

23 Apr 10:42
9da5fb3
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "tree-sitter-bazel", version = 0.22.5)

Using WORKSPACE

Paste this snippet into your file:

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

_VERSION_TAG = "x.y.z"
maybe(
  http_archive,
  name = "tree-sitter-bazel",
  urls = ["https://github.com/zadlg/tree-sitter-bazel/archive/refs/tags/v{version}.tar.gz".format(
      version = _VERSION_TAG,
  )],
  sha256 = "", # Set the SHA-256 sum of the archive.
  strip_prefix = "tree-sitter-bazel-{version}".format(
      version = _VERSION_TAG,
  ),
)

# Fetches tree-sitter dependencies (bazel_skylib)
load("@tree-sitter-bazel//:repositories.bzl", "tree_sitter_repositories")

tree_sitter_repositories()

# Fetches the source code of tree-sitter.
load("@tree-sitter-bazel//:repositories.bzl", "tree_sitter_sources")

tree_sitter_sources()

# Loads tree-sitter dependencies (bazel_skylib)
load("@tree-sitter-bazel//:deps.bzl", "tree_sitter_dependencies")

tree_sitter_dependencies()