v1.30.0
Using Bzlmod with Bazel 6:
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
# Due to a publishing problem, workaround BCR for this release:
bazel_dep(name = "aspect_bazel_lib", version = "1.29.2")
archive_override(
module_name = "aspect_bazel_lib",
integrity = "sha256-5Qv2bboZb/HKzSFoZ+E2FBA0PScs4Menexyo8WlVu4o=",
strip_prefix = "bazel-lib-1.30.0",
urls = ["https://github.com/aspect-build/bazel-lib/releases/download/v1.30.0/bazel-lib-v1.30.0.tar.gz"],
)
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 = "e50bf66dba196ff1cacd216867e1361410343d272ce0c7a77b1ca8f16955bb8a",
strip_prefix = "bazel-lib-1.30.0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.30.0/bazel-lib-v1.30.0.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: windows CI by @gregmagolan in #395
- feat: detect bzlmod automatically rather than requiring the user sets… by @alexeagle in #397
Full Changelog: v1.29.2...v1.30.0