Merge pull request #504 from fishcakez/plt_name
Drop `shared` PLTs support and change PLT name to <OTP-VSN>.plt
diff --git a/THANKS b/THANKS
index 2422310..042bb30 100644
--- a/THANKS
+++ b/THANKS
@@ -141,3 +141,4 @@
Derek Brown
Danil Onishchenko
Stavros Aronis
+James Fish
diff --git a/rebar.config.sample b/rebar.config.sample
index da1e929..916e47c 100644
--- a/rebar.config.sample
+++ b/rebar.config.sample
@@ -271,9 +271,7 @@
{dialyzer,
[
- %% Store PLT in ~/.rebar/plt (Default)
- {plt_location, shared},
- %% Store PLT locally inside the project in .rebar
+ %% Store PLT locally inside the project in .rebar (Default)
{plt_location, local},
%% Store PLT in custom directory
{plt_location, "custom_dir"},
diff --git a/src/rebar_dialyzer.erl b/src/rebar_dialyzer.erl
index 0e44592..5dec614 100644
--- a/src/rebar_dialyzer.erl
+++ b/src/rebar_dialyzer.erl
@@ -144,7 +144,6 @@
{dialyzer,
[
{plt_location, local},
- {plt_location, shared},
{plt_location, "custom_dir"},
{plt_extra_apps, [app1, app2]},
{warnings, [unmatched_returns, error_handling]}
@@ -176,10 +175,7 @@
end;
plt_dir1(Config, local) ->
BaseDir = rebar_utils:base_dir(Config),
- filename:join([BaseDir, ".rebar"]);
-plt_dir1(_Config, shared) ->
- {ok, Home} = init:get_argument(home),
- filename:join([Home, ".rebar", "plt"]).
+ filename:join([BaseDir, ".rebar"]).
check_plt_existence(Plt) ->
case filelib:is_regular(Plt) of