bazel-lib/lib/private
Peter Lobsinger 0db9fbe519
feat: support bzlmod runfiles lookups (#953)
* feat: support bzlmod repo name aliases in tarred runfiles

Under bzlmod, repos have aliases in addition to their canonical names;
in order for lookups using these canonical names to function properly,
a file name `_repo_mapping` is located in the root of the runfiles tree
and consulted to perform repo-name translation.

See: https://github.com/bazelbuild/proposals/blob/main/designs/2022-07-21-locating-runfiles-with-bzlmod.md

* pre-commit formatting

* Enable runfiles test under bzlmod

It works now.
2024-09-30 21:10:06 -07:00
..
BUILD.bazel chore: remove non-bzlmod dep on @internal_platforms_do_not_use//host:constraints.bzl now that root workspace is bzlmod-only (#916) 2024-08-20 16:14:37 -04:00
base64.bzl chore(deps): upgrade stardoc (#894) 2024-08-08 12:56:11 -07:00
bats.bzl fix: correctly split quoted args (#909) 2024-08-19 16:36:41 -04:00
bats_toolchain.bzl feat: implement bats test runner (#699) 2023-12-20 13:08:47 -08:00
copy_common.bzl perf: improve copy_file.bzl progress_message (#931) 2024-09-10 10:08:34 -07:00
copy_directory.bzl fix: moving the preserve mtime test logic to Go for portability (#908) 2024-09-17 17:25:26 -07:00
copy_directory_toolchain.bzl chore: update git urls (#926) 2024-09-17 17:05:35 -07:00
copy_file.bzl perf: improve copy_file.bzl progress_message (#931) 2024-09-10 10:08:34 -07:00
copy_to_bin.bzl docs: fix load path for copy_file_to_bin_action (#673) 2023-11-30 10:58:48 -08:00
copy_to_directory.bzl feat: add an option to not include copy_to_directory output in runfiles (#886) 2024-09-19 01:16:14 +00:00
copy_to_directory_toolchain.bzl chore: update git urls (#926) 2024-09-17 17:05:35 -07:00
coreutils_toolchain.bzl chore(deps): update coreutils to v0.0.27 (#905) 2024-09-02 15:39:32 -07:00
diff_test.bzl fix: Set size to a default value as well as timeout. (#839) 2024-07-19 12:50:50 -07:00
diff_test_tmpl.bat Add TODO comment in the windows implementation 2022-09-07 13:53:08 -07:00
diff_test_tmpl.sh chore: bazel run //:format (#682) 2023-12-08 00:30:39 -08:00
directory_path.bzl fix: improve error message in directory_path when directory does not (#192) 2022-07-22 09:37:27 -07:00
docs.bzl fix(typos): Fix almost all typos with hook (#884) 2024-07-31 10:09:17 -04:00
expand_locations.bzl refactor: deprecated expand_locations which is just pass-through to ctx.expand_location() (#910) 2024-08-19 15:28:45 -04:00
expand_template.bzl chore: update git urls (#926) 2024-09-17 17:05:35 -07:00
expand_template_toolchain.bzl chore: update git urls (#926) 2024-09-17 17:05:35 -07:00
expand_variables.bzl refactor: remove output_dir from run_binary and expand_variables (#588) 2023-10-06 08:32:55 -07:00
extension_utils.bzl fix: fix a bug where toolchain repositories were potentially duplicated (#662) 2023-11-16 06:57:29 -08:00
fail_with_message_test.bzl feat: write_source_files 2022-02-07 10:00:35 -08:00
glob_match.bzl fix(typos): Fix almost all typos with hook (#884) 2024-07-31 10:09:17 -04:00
host_repo.bzl chore: turn on more basic precommit checks 2023-02-17 11:00:00 -08:00
jq.bzl fix: correctly split quoted args (#909) 2024-08-19 16:36:41 -04:00
jq_toolchain.bzl perf: remove unnecessary calls to 'to_list' (#737) 2024-01-29 12:43:32 -05:00
lists.bzl fix(typos): Fix almost all typos with hook (#884) 2024-07-31 10:09:17 -04:00
modify_mtree.awk fix(tar): append slash to top-level directory mtree entries (#852) 2024-07-02 09:27:06 -07:00
output_files.bzl chore: turn on more basic precommit checks 2023-02-17 11:00:00 -08:00
params_file.bzl fix: correctly split quoted args (#909) 2024-08-19 16:36:41 -04:00
parse_status_file.jq chore: turn on more basic precommit checks 2023-02-17 11:00:00 -08:00
parse_status_file.yq Use actual newline (instead of "\n") to split strings in yq rule 2023-06-22 17:09:44 -07:00
patch.bzl chore: cleanup fail msgs with substitutions for cleaner error logs 2022-06-14 06:46:34 -07:00
paths.bzl perf: reduce concatenation in relative_path 2024-06-21 20:05:45 -07:00
platform_utils.bzl fix: don't generate @aspect_bazel_lib_local_config_platform repository as it is a leaky abstraction for rule consumers and not just rule authors (#243) 2022-09-13 21:58:08 -07:00
repo_utils.bzl feat: add get_home_directory to repo_utils (#809) 2024-04-03 13:53:18 -07:00
run_binary.bzl fix: correctly split quoted args (#909) 2024-08-19 16:36:41 -04:00
source_toolchains_repo.bzl feat: add a helper for rules to work with resource_sets (#792) 2024-03-18 15:38:24 -07:00
stamping.bzl feat: basic stamping support 2022-07-14 22:37:42 -07:00
strings.bzl fix: correctly split quoted args (#909) 2024-08-19 16:36:41 -04:00
strings.py feat: implement chr, ord, and hex (#425) 2023-05-15 12:15:55 -07:00
tar.bzl feat: support bzlmod runfiles lookups (#953) 2024-09-30 21:10:06 -07:00
tar_toolchain.bzl fix: pick up bsdtar windows fix (#942) 2024-09-18 18:29:33 -07:00
utils.bzl chore: update git urls (#926) 2024-09-17 17:05:35 -07:00
write_source_file.bzl chore: update git urls (#926) 2024-09-17 17:05:35 -07:00
yq.bzl yq: allow any filename in srcs (#496) 2023-08-30 09:18:10 -07:00
yq_toolchain.bzl chore: update git urls (#926) 2024-09-17 17:05:35 -07:00
zstd_toolchain.bzl feat: introduce zstd toolchain (#831) 2024-05-03 16:12:56 -07:00