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 = "2.14.0")
Read more about bzlmod: https://blog.aspect.dev/bzlmod
Using WORKSPACE
Paste this snippet into your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_bazel_lib",
sha256 = "40ba9d0f62deac87195723f0f891a9803a7b720d7b89206981ca5570ef9df15b",
strip_prefix = "bazel-lib-2.14.0",
url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v2.14.0/bazel-lib-v2.14.0.tar.gz",
)
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains")
# Required bazel-lib dependencies
aspect_bazel_lib_dependencies()
# Register bazel-lib toolchains
aspect_bazel_lib_register_toolchains()
What's Changed
- feat: add Support for Symlinks in tar Rule's Runfiles Handling by @ewianda in #1036
- chore(deps): update pre-commit hooks by @hofbi in #1035
- docs: explain that using pre-release exposes Go dependency by @alexeagle in #1042
- fix: expose LC_ALL variable in tar toolchain by @alexeagle in #1053
- chore(deps): update dependency rules_go to v0.53.0 by @renovate in #1049
- fix(deps): update module github.com/bazelbuild/rules_go to v0.53.0 by @renovate in #1050
- feat: add s390x/linux support by @rickystewart in #1047
- chore(deps): update dependency bazel to v8.1.1 by @renovate in #1034
- chore(deps): update pre-commit hook crate-ci/typos to v1.30.0 by @renovate in #1051
- fix(deps): update module golang.org/x/sys to v0.30.0 by @renovate in #1043
- chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.4.1 by @renovate in #1045
- feat: Add option to pass diff_args in write_source_files macro by @r0bobo in #1041
New Contributors
Full Changelog: v2.13.0...v2.14.0