v2.7.2
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.7.2")
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 = "a8a92645e7298bbf538aa880131c6adb4cf6239bbd27230f077a00414d58e4ce",
strip_prefix = "bazel-lib-2.7.2",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.2/bazel-lib-v2.7.2.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: 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
- fix: exclude bazeliskrc from smoke test by @kormide in #654
- fix(ci): fix bzlmod issues and enable on ci by @kormide in #658
- fix: fix a bug where toolchain repositories were potentially duplicated by @kormide in #662
- feat: expose toolchains used for copy actions by @kormide in #661
- fix: remove need for rules_go when depending on a bzl_library target (#663) by @kormide in #664
- chore: add an e2e to test copy actions by @kormide in #665
- chore: enable dynamic port allocation on workflows NAT by @kormide in #669
- chore: upgrade to Aspect Workflows 5.8.10 by @gregmagolan in #672
- docs: fix load path for copy_file_to_bin_action by @gzm0 in #673
- chore: upgrade to Aspect Workflows 5.8.15 by @gregmagolan in #674
- chore: upgrade to Aspect Workflows 5.9.0-beta.2 by @gregmagolan in #677
- feat: expose common tar variables by @thesayyn in #679
- chore: bring in aspect_rules_lint and add format task to Aspect Workflows by @gregmagolan in #681
- chore: bazel run //:format by @gregmagolan in #682
- fix: expose tar_lib as public by @thesayyn in #680
- fix(deps): update golang.org/x/exp digest to f3f8817 by @renovate in #601
- feat: introduce extension compression mapping by @thesayyn in #683
- fix: isolate rules_lint dev dependency usage into its own Bazel package by @gregmagolan in #687
- chore: run Aspect Workflows setup step on small instances by @gregmagolan in #688
- chore: improve docs about mtree mutation by @alexeagle in #692
- fix(tar): propagate testonly attr to mtree_spec by @alexeagle in #691
- chore: enable workflows delivery on demostration target by @gregmagolan in #693
- chore: upgrade to Aspect Workflows 5.9.0-rc.0 by @gregmagolan in #694
- chore: upgrade to Aspect Workflows 5.9.0-rc.7 by @gregmagolan in #695
- chore: switch to smaller 'small' instances without nvme drives by @gregmagolan in #700
- fix #697: use to_repository_relative_path in mtree_spec by @gzm0 in #696
- feat: implement bats test runner by @thesayyn in #699
- fix: create windows launcher for bats by @thesayyn in #704
- test: fix timeout by @thesayyn in #707
- chore: upgrade to Aspect Workflows 5.9.0-rc.9 by @gregmagolan in #705
- chore: upgrade to Aspect Workflows 5.9.0.rc.10 by @gregmagolan in #710
- fix: move flags that should only be set with bazel 6 to bazel6.bazelrc recommended settings by @gregmagolan in #711
- Fix prerelease by @alexeagle in #708
- chore: test against bazel 7.0.0 by @gregmagolan in #713
- feat: add is_bazel_7_or_greater utility function to public API by @gregmagolan in #714
- refactor: remove --enable-runfiles from javascript recommended bazelrc settings by @gregmagolan in #715
- chore: fix failing test on arm64 machines by @gregmagolan in #718
- feat: allow write_source_file(s) to write source files to bazel packages outside of the target's package by @gregmagolan in #717
- chore: upgrade to Aspect Workflows 5.9.0-rc.15 by @gregmagolan in #722
- chore(deps): update dependency bazel_gazelle to v0.35.0 by @renovate in #647
- fix(deps): update golang.org/x/exp digest to db7319d by @renovate in #709
- chore: reduce size of remote cache to tune deployment costs by @gregmagolan in #725
- chore: bump to e2-medium k8s nodes by @gregmagolan in #726
- chore: upgrade bash rlocation lib to v3 by @alexeagle in #727
- chore(deps): update dependency io_bazel_rules_go to v0.45.1 by @renovate in #569
- chore(deps): update dependency platforms to v0.0.8 by @renovate in #632
- chore: add example of using write_source_file to merge output tree artifact files with source files that are already in an output directory by @gregmagolan in #730
- FR-723: make WriteSourceFileInfo public by @ewhauser in #724
- chore: upgrade to Aspect Workflows 5.9.0-rc.16 by @gregmagolan in #731
- chore: upgrade to Aspect Workflows 5.9.0-rc.19 by @gregmagolan in #733
- chore: set correct warming queue by @gregmagolan in #734
- chore(deps): update dependency bazel_features to v0.2.0 by @renovate in #729
- chore: BCR testing on Bazel 6 and 7 by @alexeagle in #736
- Update paths.bzl by @alexeagle in #735
- perf: remove unnecessary calls to 'to_list' by @mattem in #737
- chore(deps): update dependency bazel_skylib to v1.5.0 by @renovate in #648
- fix(deps): update golang.org/x/exp digest to 1b97071 by @renovate in #728
- chore: upgrade to Aspect Workflows 5.9.0 by @gregmagolan in #740
- chore(deps): update dependency bazel_skylib_gazelle_plugin to v1.5.0 by @renovate in #685
- chore: upgrade to Aspect Workflows 5.9.1 by @gregmagolan in #741
- chore: upgrade to Aspect Workflows 5.9.2 by @gregmagolan in #742
- chore: cancel previous GHA from the same PR by @gregmagolan in #745
- fix: merge user tags in stardoc_with_diff_test by @gregmagolan in #746
- chore: upgrade to Aspect Workflows 5.9.4 by @gregmagolan in #750
- Update tar.bzl by @alexeagle in #751
- chore: upgrade to Aspect Workflows 5.9.5 by @gregmagolan in #752
- chore: update always_delivery to auto_delivery by @gregmagolan in #753
- presets: remove eternal test_timeout_filtering by @alexeagle in #758
- chore: upgrade to Aspect Worklfows 5.9.9 by @gregmagolan in #761
- chore: make it possible to override run_binary#use_default_shell_env by @alexeagle in #762
- chore: upgrade to Aspect Workflows 5.9.10 by @gregmagolan in #764
- Remove unnecessary ctx.resolve_tools. by @tjgq in #763
- chore: upgrade to Aspect Workflows 5.9.11 by @gregmagolan in #765
- docs: add bats docs by @jbedard in #766
- chore: green up CI by @alexeagle in #767
- chore(deps): update actions/cache action to v4 by @renovate in #744
- chore(deps): update actions/github-script action to v7 by @renovate in #759
- Update renovate.json by @alexeagle in #572
- jq: add data file and location expansion support by @novas0x2a in #757
- chore(deps): update dependency bazel to v6.5.0 by @renovate in #738
- feat(list): add
unique
function by @mgred in #716 - chore: bump libxml2 deb to USN-6658-1 by @mattem in #768
- chore: fix GHA concurrency check to not apply to main branch by @gregmagolan in #771
- chore: upgrade to Aspect Workflows 5.9.14 by @gregmagolan in #772
- chore: upgrade to Aspect Workflows 5.9.15 by @gregmagolan in #773
- feat: support location expansion in tar by @thesayyn in #774
- chore: upgrade to Aspect Workflows 5.9.16 by @gregmagolan in #775
- chore: fix circleci yaml generation for artifact path storage by @gregmagolan in #777
- docs: add use_default_shell_env to docstring of run_binary by @gregmagolan in #778
- docs: add warning about using use_default_shell_env by @gregmagolan in #779
- chore: upgrade to Aspect Workflows 5.9.18 by @gregmagolan in #780
- chore: upgrade to Aspect Workflows 5.9.20 by @gregmagolan in #784
- fix: tar#srcs is optional by @thesayyn in #785
- fix: srcs is not mandatory by @thesayyn in #786
- chore: upgrade to Aspect Workflows 5.9.22 by @gregmagolan in #787
- chore: switch to new Aspect Workflows OSS staging deployment by @gregmagolan in #791
- chore: stash output of vmstat in artifacts by @gregmagolan in #793
- feat: add a helper for rules to work with resource_sets by @alexeagle in #792
- feat: don't require 'out' on expand_template by @alexeagle in #798
- clean rm of copied dirs and files by @jgao54 in #799
- chore: upgrade to Aspect Workflows 5.9.24 by @gregmagolan in #801
- chore: upgrade to Aspect Workflows 5.10.0-alpha.0 by @gregmagolan in #803
- Update README.md by @alexeagle in #805
- Use statically-linked bsdtar on all platforms by @alexeagle in #804
- feat: add //lib:enable_runfiles config_setting by @gregmagolan in #807
- feat: add get_home_directory to repo_utils by @gregmagolan in #809
- feat: export utils from //lib:utils.bzl to match repo_utils and platform_utils by @gregmagolan in #810
- feat: add platform_transition_test by @lamcw in #770
- chore: upgrade Aspect Workflows to 5.10.0-alpha.5 by @kormide in #815
- chore: upgrade Aspect Workflows to 5.10.0-alpha.6 by @kormide in #816
- chore: upgrade Aspect Workflows to 5.10.0-alpha.8 by @kormide in #817
- chore: bump to bsdtar-prebuilt 3.7.2-1 binaries for linux and darwin by @gregmagolan in #819
- support spaces in status by @com6056 in #820
- chore: upgrade to Aspect Workflows 5.10.0-alpha.9 by @gregmagolan in #821
- chore: upgrade to Aspect Workflows 5.10.0-alpha.10 by @gregmagolan in #822
- ci: enforce PR titles are semantic by @alexeagle in #823
- chore: add bazel test support to javascript --config=debug preset by @gregmagolan in #825
- refactor: update conventional-commits.yml by @alexeagle in #824
- chore: upgrade to Aspect Workflows 5.10.0-rc0 by @gregmagolan in #828
- feat(tar): add ergonomic way to strip_prefix by @alexeagle in #829
- feat: introduce zstd toolchain by @thesayyn in #831
New Contributors
- @gzm0 made their first contribution in #673
- @ewhauser made their first contribution in #724
- @tjgq made their first contribution in #763
- @novas0x2a made their first contribution in #757
- @jgao54 made their first contribution in #799
- @lamcw made their first contribution in #770
- @com6056 made their first contribution in #820
Full Changelog: v1.42.3...v2.7.2