diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-04-22 18:12:43 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-04-22 18:12:43 -0500 |
commit | 0537a0699d01e4ae61dd32db0d964224bf9a1f5e (patch) | |
tree | 7baa98fd379b9d6a7e892adbbd783f4b75117067 /src/rebar_prv_dialyzer.erl | |
parent | de77225b49ca1af2e4a90f02ef248a15f1e74081 (diff) | |
parent | 12bd412c22fcfaeb752727a6c0098140704078f0 (diff) |
Merge pull request #354 from tsloughter/track_code_path
Track code path
Diffstat (limited to 'src/rebar_prv_dialyzer.erl')
-rw-r--r-- | src/rebar_prv_dialyzer.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl index ef6a64c..f7cdf3b 100644 --- a/src/rebar_prv_dialyzer.erl +++ b/src/rebar_prv_dialyzer.erl @@ -64,6 +64,7 @@ short_desc() -> -spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}. do(State) -> ?INFO("Dialyzer starting, this may take a while...", []), + code:add_paths(rebar_state:code_paths(State, all_deps)), Plt = get_plt_location(State), Apps = rebar_state:project_apps(State), @@ -74,6 +75,8 @@ do(State) -> ?PRV_ERROR({error_processing_apps, Error}); throw:{dialyzer_warnings, Warnings} -> ?PRV_ERROR({dialyzer_warnings, Warnings}) + after + rebar_utils:cleanup_code_path(rebar_state:code_paths(State, default)) end. -spec format_error(any()) -> iolist(). |