Skip to content

Commit

Permalink
]erlang] link test resources instead of copying them
Browse files Browse the repository at this point in the history
Summary:
There are 2 reasons for this:
1. it's more efficient to link then to copy these files.
2. some tests want to update test fixtures when given a specific run flag, and must know the original file path.

Reviewed By: alanz

Differential Revision: D67855901

fbshipit-source-id: b681c627524553bc7392f23b370841c474968f4c
  • Loading branch information
TheGeorge authored and facebook-github-bot committed Jan 6, 2025
1 parent 517e4ee commit 8783234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prelude/erlang/erlang_utils.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _file_mapping_impl(ctx: AnalysisContext) -> list[Provider]:
for file in files:
target_path = paths.normalize(target_path)
out_path = paths.normalize(paths.join(target_path, file.basename))
out = ctx.actions.copy_file(
out = ctx.actions.symlink_file(
out_path,
file,
)
Expand Down

0 comments on commit 8783234

Please sign in to comment.