summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-03-12 16:08:43 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-03-12 16:08:43 -0500
commitebb4461f8720ba16c98277572a5489a776657465 (patch)
treee60d6b884fb7f2ba38cf2d55036559885be75ba6
parentbf4d9d0004e21d9a45cd980a92a9af3702032fa2 (diff)
parent92c6cf17b0e0c0af193f6704e4ce62f6ef07c53e (diff)
Merge pull request #264 from fishcakez/cache_plt
Store base PLT in ~/.cache/rebar3/
-rw-r--r--src/rebar_prv_dialyzer.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl
index fe9a141..24e276d 100644
--- a/src/rebar_prv_dialyzer.erl
+++ b/src/rebar_prv_dialyzer.erl
@@ -296,8 +296,8 @@ build_proj_plt(State, Plt, Files) ->
end.
get_base_plt_location(State) ->
- GlobalConfigDir = rebar_dir:global_config_dir(State),
- BaseDir = rebar_state:get(State, dialyzer_base_plt_dir, GlobalConfigDir),
+ GlobalCacheDir = rebar_dir:global_cache_dir(State),
+ BaseDir = rebar_state:get(State, dialyzer_base_plt_dir, GlobalCacheDir),
BasePlt = rebar_state:get(State, dialyzer_base_plt, default_plt()),
filename:join(BaseDir, BasePlt).