Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarify write_source_files output constraint #498

Merged
merged 2 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/write_source_files.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/private/write_source_file.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def write_source_file(

This is typically a file or directory output of another target. If `in_file` is a directory then entire directory contents are copied.

out_file: The file or directory to write to in the source tree. Must be within the same bazel package as the target.
out_file: The file or directory to write to in the source tree. Must be within the same containing Bazel package as this target.

executable: Whether source tree file or files within the source tree directory written should be made executable.

Expand Down
2 changes: 1 addition & 1 deletion lib/write_source_files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def write_source_files(
files: A dict where the keys are files or directories in the source tree to write to and the values are labels
pointing to the desired content, typically file or directory outputs of other targets.

Source tree files and directories must be within the same bazel package as the target.
Destination files and directories nominated in the dict's keys must be within the same containing Bazel package as this target.
kormide marked this conversation as resolved.
Show resolved Hide resolved

executable: Whether source tree files written should be made executable.

Expand Down