2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-30 01:41:21 +00:00
bazel-lib/docs
Douglas Parker c6b39ab8f6
fix: always include files from the same workspace as the build target in copy_to_directory() (#360)
* fix: always include files from the same workspace as the build target in `copy_to_directory`

Fixes #359.

This updates the `copy_to_directory` tool to accept a workspace name representing the workspace of the target it is executing under. Any files in this workspace are automatically included, regardless of the `include_external_repositories` option. This makes it support usage within an external target (such as `@wksp//:dir`).

* test: add e2e test which uses `copy_to_directory` within an external workspace

Refs #359.

This should catch regressions where no files are copied when built within an external workspace and not using `include_external_repositories`.

* ci: fix stray workspace refs

---------

Co-authored-by: Alex Eagle <alex@aspect.dev>
2023-10-10 07:16:13 -07:00
..
templates chore: turn on more basic precommit checks 2023-02-17 11:00:00 -08:00
base64.md
bazelrc_presets.md fix: add missing **kwargs to write_aspect_bazelrc_presets (#379) 2023-02-22 12:17:00 -08:00
BUILD.bazel feat: add list utils (#512) 2023-09-21 10:12:47 -07:00
copy_directory.md feat: expose a config_setting for copy execution_requirements (#606) (#607) 2023-10-09 14:08:17 -07:00
copy_file.md feat: expose a config_setting for copy execution_requirements (#606) (#607) 2023-10-09 14:08:17 -07:00
copy_to_bin.md Add copy_directory binary tool (#324) 2023-01-14 15:51:01 -08:00
copy_to_directory.md fix: always include files from the same workspace as the build target in copy_to_directory() (#360) 2023-10-10 07:16:13 -07:00
diff_test.md
directory_path.md
docs.md feat: allow additional common args to be passed to update_docs 2023-02-21 10:49:06 -08:00
expand_make_vars.md feat: expand_template allows inline template content (#533) 2023-09-20 18:32:05 -07:00
expand_template.md feat: add undeclared output mode to expand_template (#561) 2023-09-29 11:30:02 -07:00
glob_match.md
host_repo.md
jq.md chore: document JQ_BIN make var 2023-07-26 13:18:31 -07:00
lists.md feat: add list utils (#512) 2023-09-21 10:12:47 -07:00
output_files.md
params_file.md
paths.md docs: clarify rlocationpath 2023-05-24 17:16:00 -07:00
platform_utils.md
repo_utils.md chore: document JQ_BIN make var 2023-07-26 13:18:31 -07:00
repositories.md feat: support stamp substituions (#435) 2023-05-16 16:14:50 -07:00
run_binary.md chore: add test coverage for run_binary & expand_variables makevars (#504) 2023-08-26 13:59:48 -07:00
stamping.md docs(jq): document empty srcs 2023-04-19 09:03:52 -07:00
strings.md chore: run buildifier 2023-06-13 16:28:17 -07:00
testing.md feat: add assert_directory_contains test to testing.bzl (#560) 2023-09-29 09:53:00 -07:00
transitions.md
utils.md feat: add propagate_common_{,test_,binary_}rule_attributes to lib/utils. (#553) 2023-09-26 14:29:42 -07:00
write_source_files.md docs: clarify write_source_files output constraint (#498) 2023-08-23 12:32:56 -07:00
yq.md feat: yq supports stamping 2023-06-15 16:50:26 -07:00