Releases: bazel-contrib/bazel-lib
v1.38.0
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 = "1.38.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 = "b848cd8e93be7f18c3deda6d2f3ade92a657d3585e119953bc50dc75fef535c2",
strip_prefix = "bazel-lib-1.38.0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.38.0/bazel-lib-v1.38.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 bzlmod (#600) by @kormide in #660
- fix(ci): fix bzlmod issues and enable on ci (#658) by @kormide in #659
- feat: backport 2.x features for interoperability by @kormide in #657
Full Changelog: v1.37.0...v1.38.0
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
v1.37.0
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 = "1.37.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 = "ce259cbac2e94a6dff01aff9455dcc844c8af141503b02a09c2642695b7b873e",
strip_prefix = "bazel-lib-1.37.0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.37.0/bazel-lib-v1.37.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
- chore: upgrade to Aspect Workflows 5.8.0-rc12 by @gregmagolan in #596
- chore: upgrade to Aspect Workflows 5.8.0-rc14 by @gregmagolan in #598
- feat: expose a config_setting for copy execution_requirements (#606) by @alexeagle in #607
- fix: always include files from the same workspace as the build target in
copy_to_directory()
by @dgp1130 in #360 - fix: windows home directory by @alexeagle in #608
Full Changelog: v1.36.0...v1.37.0
v2.0.0-rc1
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-rc1")
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 = "a185ccff9c1b8589c63f66d7eb908de15c5d6bb05562be5f46336c53e7a7326a",
strip_prefix = "bazel-lib-2.0.0-rc1",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.0.0-rc1/bazel-lib-v2.0.0-rc1.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 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
Full Changelog: v2.0.0-rc0...v2.0.0-rc1
v2.0.0-rc0
Don't use. Release 2.0.0 is now available.
v2.0.0-beta1
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-beta1")
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 = "dd56b26e25c4d4647c24ed67fc93ab8b60b1d8eafd20df2651becfab0bccc342",
strip_prefix = "bazel-lib-2.0.0-beta1",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.0.0-beta1/bazel-lib-v2.0.0-beta1.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: 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
Full Changelog: v2.0.0-beta0...v2.0.0-beta1
v1.36.0
📣 NOTE
v1.34.1 introduced a regression in performance for copying files, in particular users of rules_js with a large number of npm dependencies would be affected. This is now fixed in this release.
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 = "1.36.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 = "cbf473d630ab67b36461d83b38fdc44e56f45b78d03c405e4958280211124d79",
strip_prefix = "bazel-lib-1.36.0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.36.0/bazel-lib-v1.36.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
- 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
- feat(presets): always fetch all coverage files on coverage runs by @kormide in #564
- Revert "refactor: reduce execution requirements for copy" by @alexeagle in #594
Full Changelog: v1.35.0...v1.36.0
v2.0.0-beta0
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-beta0")
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 = "39ecbb25198950bab1cddc0f36e271f95a3e8bdb102c70e5c3ca6beb48602799",
strip_prefix = "bazel-lib-2.0.0-beta0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.0.0-beta0/bazel-lib-v2.0.0-beta0.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
- 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
Full Changelog: v1.35.0...v2.0.0-beta0
v1.35.0
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 = "1.35.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 = "e9505bd956da64b576c433e4e41da76540fd8b889bbd17617fe480a646b1bfb9",
strip_prefix = "bazel-lib-1.35.0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.35.0/bazel-lib-v1.35.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
- chore: upgrade to Aspect Workflows 5.8.0-rc2 by @gregmagolan in #521
- chore(deps): update dependency bazel_gazelle to v0.33.0 by @renovate in #522
- fix(deps): update golang.org/x/exp digest to 9212866 by @renovate in #432
- chore(deps): update dependency platforms to v0.0.7 by @renovate in #491
- chore(deps): update actions/checkout action to v4 by @renovate in #523
- docs: Add --incompatible_disallow_empty_glob to correctness.bazelrc by @thirtyseven in #524
- chore: upgrade to Aspect Workflows 5.8.0-rc6 by @gregmagolan in #530
- fix: check in generated bazelrcs by @thesayyn in #535
- chore: fix red ci by @alexeagle in #534
- feat: expand_template allows inline template content by @alexeagle in #533
- feat: add list utils by @mgred in #512
- feat: update
copy_to_directory
tool to accept the name of its workspace and automatically include files from it by @dgp1130 in #488 - fix: lookup source files from execroot when running diff_test on RBE by @mattem in #531
- refactor: remove stamp information from tools by @thesayyn in #537
- refactor: add ability to test against tools from source by @thesayyn in #532
- fix: allow for BUILD files in outputs of write_source_file by @mattem in #540
- refactor: cleanup e2e by @thesayyn in #542
- chore: upgrade to Aspect Workflows 5.8.0-rc8 by @gregmagolan in #546
- refactor: consume tools from source if unstamped by @thesayyn in #543
- docs: add minimum pre-commit version by @mgred in #544
- chore: set --remote_download_minimal and --nobuild_runfile_links for all Workflows tasks by @gregmagolan in #549
- fix: macos sed by @thesayyn in #550
- chore: bump GKE machine type to e2-standard-2 by @gregmagolan in #551
- feat: add
propagate_common_{,test_,binary_}rule_attributes
to lib/utils. by @reltuk in #553 - chore: rules_go is a non-dev dep at HEAD by @alexeagle in #554
- fix(ci): always build with -c opt by @alexeagle in #555
- ci: add assertion that bcr patches apply by @alexeagle in #556
New Contributors
- @thirtyseven made their first contribution in #524
- @mgred made their first contribution in #512
- @dgp1130 made their first contribution in #488
- @reltuk made their first contribution in #553
Full Changelog: v1.34.5...v1.35.0
v1.34.5
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 = "1.34.5")
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 = "09b51a9957adc56c905a2c980d6eb06f04beb1d85c665b467f659871403cf423",
strip_prefix = "bazel-lib-1.34.5",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.34.5/bazel-lib-v1.34.5.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
- chore: pick up new expand_template go binary by @alexeagle in #518
Full Changelog: v1.34.4...v1.34.5