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.10.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 = "7b39d9f38b82260a8151b18dd4a6219d2d7fc4a0ac313d4f5a630ae6907d205d",
strip_prefix = "bazel-lib-2.10.0",
url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v2.10.0/bazel-lib-v2.10.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
- fix(tar): handle directories with spaces in name by @alexeagle in #984
- feat: bats_test: add junit report to test results by @pjjw in #982
- docs: Update jq docs to show correct escaping by @ChrisChinchilla in #983
- refactor: Fix no-else-after-return by @hofbi in #988
- fix: honor umask in write_source_file by @sitaktif in #986
- fix: Disable the non-deterministic time header when using gzip compression by @hofbi in #989
- fix(deps): update module golang.org/x/sys to v0.28.0 by @renovate in #981
- chore(deps): update dependency bazel to v7.4.1 by @renovate in #971
- fix(bats_test): use env var rather than symbolic link by @alexeagle in #991
- chore(deps): Enable renovate for pre-commit by @hofbi in #994
- chore: start testing on Bazel 8 by @alexeagle in #972
- chore(deps): update pre-commit hook keith/pre-commit-buildifier to v7 by @renovate in #1000
- chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v5 by @renovate in #1001
- chore(deps): update pre-commit hook commitizen-tools/commitizen to v4 by @renovate in #999
- chore(deps): update pre-commit hook crate-ci/typos to v1.28.2 by @renovate in #997
- feat(bzlmod): mark toolchains extension as reproducible by @cerisier in #970
- feat: Forward RunEnvironmentInfo if present by @molar in #1008
- ci(pre-commit): Add pre-commit CI job by @hofbi in #1002
- chore(deps): update dependency bazel to v8 by @renovate in #1004
- fix(tar): handle strip_prefix of root directory in mtree_mutate by @j-eid in #995
New Contributors
- @ChrisChinchilla made their first contribution in #983
- @sitaktif made their first contribution in #986
- @cerisier made their first contribution in #970
- @molar made their first contribution in #1008
- @j-eid made their first contribution in #995
Full Changelog: v2.9.4...v2.10.0