bazel-lib/e2e/external_copy_to_directory
Douglas Parker 323329f119 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 10:57:08 -07:00
..
app fix: always include files from the same workspace as the build target in `copy_to_directory()` (#360) 2023-10-10 10:57:08 -07:00
.bazelignore fix: always include files from the same workspace as the build target in `copy_to_directory()` (#360) 2023-10-10 10:57:08 -07:00
.bazelrc fix: always include files from the same workspace as the build target in `copy_to_directory()` (#360) 2023-10-10 10:57:08 -07:00
.bazelversion fix: always include files from the same workspace as the build target in `copy_to_directory()` (#360) 2023-10-10 10:57:08 -07:00
BUILD.bazel fix: always include files from the same workspace as the build target in `copy_to_directory()` (#360) 2023-10-10 10:57:08 -07:00
WORKSPACE fix: always include files from the same workspace as the build target in `copy_to_directory()` (#360) 2023-10-10 10:57:08 -07:00
directory.bzl fix: always include files from the same workspace as the build target in `copy_to_directory()` (#360) 2023-10-10 10:57:08 -07:00
foo.txt fix: always include files from the same workspace as the build target in `copy_to_directory()` (#360) 2023-10-10 10:57:08 -07:00