diff options
-rw-r--r-- | src/rebar_utils.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 564b384..a90a18b 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -651,7 +651,12 @@ update_code(Paths) -> code:add_patha(Path), ok; {ok, Modules} -> - code:replace_path(App, Path), + %% replace_path causes problems when running + %% tests in projects like erlware_commons that rebar3 + %% also includes + %code:replace_path(App, Path), + code:del_path(App), + code:add_patha(Path), [begin code:purge(M), code:delete(M) end || M <- Modules] end end, Paths). |