v1.34.3
Using Bzlmod with Bazel 6:
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_bazel_lib", version = "1.34.3")
Read more about bzlmod: https://blog.aspect.dev/bzlmod
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_bazel_lib",
sha256 = "e0edd9b633a8ee2bbb5a9ac294be5a8b645a8094f8d6ddba987fb85e1747ab46",
strip_prefix = "bazel-lib-1.34.3",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.34.3/bazel-lib-v1.34.3.tar.gz",
)
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")
aspect_bazel_lib_dependencies()
Optional toolchains:
# Register the following toolchain to use jq
load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")
register_jq_toolchains()
# Register the following toolchain to use yq
load("@aspect_bazel_lib//lib:repositories.bzl", "register_yq_toolchains")
register_yq_toolchains()
What's Changed
- fix: strip 'v' prefix from tag when setting module version by @alexeagle in #514
- refactor: invert the conditional for setting version by @alexeagle in #515
Full Changelog: v1.34.2...v1.34.3