mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-30 01:41:21 +00:00
4bfe55711a
* feat: expose a config_setting for copy execution_requirements Fixes #604 * chore: add user docs * chore: improve docs * chore: better link to copy_file
25 lines
865 B
Python
25 lines
865 B
Python
"""Copy files and directories to an output directory.
|
|
|
|
NB: See notes on [copy_file](./copy_file.md#choosing-execution-requirements)
|
|
regarding `execution_requirements` settings for remote execution.
|
|
These settings apply to the rules below as well.
|
|
"""
|
|
|
|
load(
|
|
"//lib/private:copy_to_directory.bzl",
|
|
_copy_to_directory_bin_action = "copy_to_directory_bin_action",
|
|
_copy_to_directory_lib = "copy_to_directory_lib",
|
|
)
|
|
|
|
# export the starlark library as a public API
|
|
copy_to_directory_lib = _copy_to_directory_lib
|
|
copy_to_directory_bin_action = _copy_to_directory_bin_action
|
|
|
|
copy_to_directory = rule(
|
|
doc = _copy_to_directory_lib.doc,
|
|
implementation = _copy_to_directory_lib.impl,
|
|
provides = _copy_to_directory_lib.provides,
|
|
attrs = _copy_to_directory_lib.attrs,
|
|
toolchains = ["@aspect_bazel_lib//lib:copy_to_directory_toolchain_type"],
|
|
)
|