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

chore: add example of using write_source_file to merge output tree artifact files with source files that are already in an output directory #730

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

gregmagolan
Copy link
Member

@gregmagolan gregmagolan commented Jan 23, 2024

This question came up on on Bazel slack: https://bazelbuild.slack.com/archives/C04281DTLH0/p1705587885980189.

A combination of copy_to_directory and exports_files in the BUILD file of a directory that write_source_files outputs to can be used to merge source file that live in the output directory with generated contents from elsewhere.


Type of change

  • Chore (any other change that doesn't affect source or test files, such as configuration)

Test plan

  • New test cases added

…tifact files with source files that are already in an output directory
@gregmagolan gregmagolan merged commit 1baf14f into main Jan 23, 2024
70 checks passed
@gregmagolan gregmagolan deleted the write_source_files_merged_directory_example branch January 23, 2024 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants