Releases: bazel-contrib/bazel-lib
v2.8.1
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.8.1")
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 = "688354ee6beeba7194243d73eb0992b9a12e8edeeeec5b6544f4b531a3112237",
strip_prefix = "bazel-lib-2.8.1",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.8.1/bazel-lib-v2.8.1.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: green up CI on main branch by @alexeagle in #904
- refactor: deprecated expand_locations which is just pass-through to ctx.expand_location() by @gregmagolan in #910
- chore: fixup test sizes to resolve warnings by @gregmagolan in #911
- fix: correctly split quoted args by @gregmagolan in #909
Full Changelog: v2.8.0...v2.8.1
v2.8.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 = "2.8.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 = "cea19e6d8322fb212f155acb58d1590f632e53abde7f1be5f0a086a93cf4c9f4",
strip_prefix = "bazel-lib-2.8.0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.8.0/bazel-lib-v2.8.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.10.9 by @gregmagolan in #881
- chore(deps): update bsdtar prebuilt by @alexeagle in #882
- fix: Set size to a default value as well as timeout. by @matts1 in #839
- chore(typos): Add typos hook plus some fixes by @hofbi in #637
- chore: upgrade to Aspect Workflows 5.10.11 by @gregmagolan in #888
- chore: upgrade to Aspect Workflows 5.10.12 by @gregmagolan in #890
- fix(typos): Fix almost all typos with hook by @hofbi in #884
- docs(tar): point to the tests as useful examples by @alexeagle in #892
- chore(deps): upgrade stardoc by @alexeagle in #894
- chore: bazel run //:gazelle_update_repos by @gregmagolan in #895
- perf: use darwin's clonefile syscall by @plobsing in #893
- fix: add bzlmod use_repo of org_golang_x_sys by @plobsing in #896
- feat: Adding a preserve mtime feature to copy_to_directory and copy_directory by @jpinkul in #898
- fix(docs): description of jq example didn't match behavior by @alexeagle in #897
- chore: turn off bzlmod misguided warning by @alexeagle in #901
- chore: bazel run //:buildifier by @gregmagolan in #903
New Contributors
- @matts1 made their first contribution in #839
- @hofbi made their first contribution in #637
- @plobsing made their first contribution in #893
- @jpinkul made their first contribution in #898
Full Changelog: v2.7.9...v2.8.0
v2.7.9
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.9")
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 = "c780120ab99a4ca9daac69911eb06434b297214743ee7e0a1f1298353ef686db",
strip_prefix = "bazel-lib-2.7.9",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.9/bazel-lib-v2.7.9.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
- perf: reduce concatenation in relative_path by @jbedard in #868
- fix(tar): expose package_dir argument in mtree_mutate by @gzm0 in #873
- fix(tar): append slash to top-level directory mtree entries by @sin-ack in #852
New Contributors
Full Changelog: v2.7.8...v2.7.9
v2.7.8
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.8")
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 = "714cf8ce95a198bab0a6a3adaffea99e929d2f01bf6d4a59a2e6d6af72b4818c",
strip_prefix = "bazel-lib-2.7.8",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.8/bazel-lib-v2.7.8.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
- test: add test / example of using rootpath on a run_binary directory output by @gregmagolan in #862
- chore: add --check_direct_dependencies to .bazelrc by @gregmagolan in #864
- fix: Directory hidden files in write_source_file. by @jgiles in #860
- docs: add missing default stamp var by @alexeagle in #865
- chore: upgrade bsdtar to 3.7.4 by @alexeagle in #866
- fix: allow copy_to_directory to have an empty srcs list by @gregmagolan in #871
New Contributors
Full Changelog: v2.7.7...v2.7.8
v2.7.7
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.7")
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 = "6d758a8f646ecee7a3e294fbe4386daafbe0e5966723009c290d493f227c390b",
strip_prefix = "bazel-lib-2.7.7",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.7/bazel-lib-v2.7.7.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
- refactor: pre-factors for fix in copy_to_directory by @gregmagolan in #858
- fix: exclude files in copy_to_directory before checking their realpath by @gregmagolan in #857
Full Changelog: v2.7.6...v2.7.7
v2.7.6
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.6")
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 = "b59781939f40c8bf148f4a71bd06e3027e15e40e98143ea5688b83531ec8528f",
strip_prefix = "bazel-lib-2.7.6",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.6/bazel-lib-v2.7.6.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()
Full Changelog: v2.7.3...v2.7.6
What's Changed
- chore: run buildifier to green up main by @gregmagolan in #841
- chore: bump to Bazel 7.1.2 by @gregmagolan in #842
- ci: green up main by @gregmagolan in #844
- chore: bump buildifier, go and gazelle deps by @gregmagolan in #845
- chore: align ci patterns by @gregmagolan in #843
- chore: tidy in MODULE.bazel file by @gregmagolan in #846
- ci: green up rbe on main by @gregmagolan in #847
- fix: coreutils download path for darwin_amd64 by @mrmeku in #853
- refactor(release): switch release integrity to be dynamic by @alexeagle in #854
- fix: integrity hashes are now sha256 since #854 by @alexeagle in #855
New Contributors
Full Changelog: v2.7.3...v2.7.6
v2.7.5
Broken, do not use.
Release integrity shas are expected in the wrong format.
v2.7.4
Broken, do not use.
The integrity hashes for release binaries in the artifact don't match the ones fetched from GitHub.
v2.7.3
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.3")
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 = "87ab4ec479ebeb00d286266aca2068caeef1bb0b1765e8f71c7b6cfee6af4226",
strip_prefix = "bazel-lib-2.7.3",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.3/bazel-lib-v2.7.3.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 @zstd_toolchains//:all by @thesayyn in #832
- fix: only check for blank space between status entries in expand_template by @com6056 in #834
- fix(tar): handle spaces in input filenames by @alexeagle in #835
- fix: coreutils toolchain: Use statically linked linux amd64 variant by @malt3 in #706
Full Changelog: v2.7.2...v2.7.3
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 https://git...