fix: fix a bug where multiple files were not written at the root package

This commit is contained in:
Derek Cormier 2022-08-16 11:00:33 -07:00
parent c867e37856
commit c1e7aa1181
2 changed files with 5 additions and 2 deletions

View File

@ -37,7 +37,10 @@ genrule(
write_source_files(
name = "write_source_file_root-test",
diff_test = False,
files = {"test-out/dist/write_source_file_root-test": ":write_source_file_root"},
files = {
"test-out/dist/write_source_file_root-test": ":write_source_file_root",
"test-out/dist/write_source_file_root-test_b": ":write_source_file_root",
},
)
# Test that yq works in the root package

View File

@ -181,7 +181,7 @@ fi
"# Run the update scripts for all write_source_file deps",
])
for update_script in additional_update_scripts:
contents.append("\"{update_script}\"".format(update_script = update_script.short_path))
contents.append("./\"{update_script}\"".format(update_script = update_script.short_path))
ctx.actions.write(
output = updater,