v2.0.0
⚠️ This release has some compatibility issues with rules_js and rules_ts which are fixed in bazel-lib v2.0.1.
Please upgrade to 2.0.1, and see release notes there.
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.0.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 = "c4f36285ceed51f75da44ffcf8fa393794d0dc2e273a2e03be50462e347740cd",
strip_prefix = "bazel-lib-2.0.0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.0.0/bazel-lib-v2.0.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
- chore: upgrade to Aspect Workflows 5.8.0-rc9 by @gregmagolan in #557
- chore: upgrade to Aspect Workflows 5.8.0-rc11 by @gregmagolan in #558
- chore: update to Aspect CLI 5.7.2 by @gregmagolan in #559
- feat: add assert_directory_contains test to testing.bzl by @gregmagolan in #560
- feat: add undeclared output mode to expand_template by @gregmagolan in #561
- fix(ci): don't run patch on windows by @alexeagle in #562
- chore: update pre-commit buildifier by @alexeagle in #563
- chore(deps): update dependency buildifier_prebuilt to v6.3.3 by @renovate in #489
- chore: bump to latest version of Aspect Workflows starter image by @gregmagolan in #571
- fix: register tar toolchain for bzlmod users by @alexeagle in #574
- chore: remove expand_template re-export by @kormide in #580
- chore: run CI on 2.x branch by @kormide in #581
- Avoid expanding mtree spec during analysis phase by @dzbarsky in #576
- fix: fix bad import by @kormide in #583
- chore: drop Bazel 5 support for 2.0 by @alexeagle in #585
- chore: run gazelle by @alexeagle in #584
- chore: check gazelle on CI by @alexeagle in #586
- chore: remove legacy copy_to_directory_action by @kormide in #582
- chore: remove is_windows attributes by @alexeagle in #587
- refactor: remove legacy copy_directory_action helper by @gregmagolan in #589
- refactor: remove output_dir from run_binary and expand_variables by @gregmagolan in #588
- refactor: remove to_workspace_path and to_manifest_path from paths by @gregmagolan in #590
- refactor: remove exclude_prefixes from copy_to_directory and copy_to_directory_bin_action by @gregmagolan in #591
- chore: fix tar_toolchain naming by @alexeagle in #599
- Fix bzlmod by @alexeagle in #600
- feat: expose a config_setting for copy execution_requirements by @alexeagle in #606
- feat: tar includes runfiles by @alexeagle in #595
- refactor: rework toolchain registration for WORKSPACE and bzlmod users by @kormide in #597
- refactor: use _mtree_line helper by @alexeagle in #612
- chore: add windows binaries by @alexeagle in #610
- chore: upgrade to Aspect Workflows 5.8.0 by @gregmagolan in #617
- chore: remove useless check for stamped binary by @alexeagle in #618
- Update ci.yaml by @alexeagle in #619
- chore: remove bazel5 presets by @kormide in #614
- Unconditionally use runfiles.merge_all in write_source_file by @dzbarsky in #623
- chore: tweak CCI config yaml by @gregmagolan in #627
- chore: upgrade to Aspect Workflows 5.8.2 by @gregmagolan in #628
- chore: update buildifier targets used by Aspect Workflows by @gregmagolan in #629
- feat: support treeartifacts (#630) by @alexeagle in #631
- chore: don't run legacy pipeline when warming by @gregmagolan in #634
- chore: upgrade to Aspect Workflows 5.8.3 by @gregmagolan in #635
- fix: fix execution requirements for 'build without the bytes' by @gregmagolan in #639
- Revert: feat: expose a config_setting for copy execution_requirements (#606) by @gregmagolan in #640
- refactor: move 'git archive' configuration to .gitattributes by @alexeagle in #641
- fix(deps): update module github.com/bmatcuk/doublestar/v4 to v4.6.1 by @renovate in #633
- chore: green up Windows CI by @gregmagolan in #643
- chore: update bcr maintainer list by @kormide in #644
- chore: upgrade to Aspect Workflows 5.8.7 by @gregmagolan in #646
- Upgrade coreutils and add darwin arm64 binary by @dzbarsky in #649
- Use coreutils toolchain for copy_file action by @dzbarsky in #622
Full Changelog: v1.35.0...v2.0.0