Skip to content

Commit

Permalink
Dereference symbolic links when copying files in the compilation
Browse files Browse the repository at this point in the history
The `test_SUITE_data` folder when running common test is only
dereference when the folder is in the root app. When the folder
is in `apps/{app-name}/test`, the folder is copied in compilation time.
The first approach to fix it was added here [1].

[1] erlang#2731
  • Loading branch information
gonzalobf committed Aug 25, 2022
1 parent c0c5a0e commit 26f49ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/rebar/src/rebar_prv_compile.erl
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ copy(Source, Target) ->
{ok, Files} = rebar_utils:list_dir(Source),
case [filename:join([Source, F]) || F <- Files] of
[] -> ok;
Paths -> rebar_file_utils:cp_r(Paths, Target)
Paths -> rebar_file_utils:cp_r(Paths, Target, [{dereference, true}])
end.

delete_if_symlink(Path) ->
Expand Down

0 comments on commit 26f49ea

Please sign in to comment.