v1.8.0
Using Bzlmod:
- Enable with
--experimental_enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "aspect_bazel_lib", version = "1.8.0")
Read more about bzlmod: https://blog.aspect.dev/bzlmod
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_bazel_lib",
sha256 = "57d997d473893605cf8025d4200cca91921e972a73b235d53116cba80c6b0a72",
strip_prefix = "bazel-lib-1.8.0",
url = "https://github.com/aspect-build/bazel-lib/archive/refs/tags/v1.8.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: patch diff_test with runfiles fix by @kormide in #188
- fix: improve error message in directory_path when directory does not exist by @kormide in #192
- feat: add include_prefixes to copy_to_directory by @gregmagolan in #193
- feat: add glob_match starlark utility function that support "", "**" and "?" expressions as well as optionally allow for "" and "?" to match of path separators by @gregmagolan in #194
- chore: add glob_match to docs by @gregmagolan in #195
- feat: add glob support to copy_to_directory include_srcs_patterns, exclude_srcs_patterns, replace_prefixes and root_paths by @gregmagolan in #196
- chore: add '?' pattern to test cases of copy_to_directory by @gregmagolan in #199
Full Changelog: v1.7.0...v1.8.0