|
@ -91,24 +91,7 @@ get_plt_location(State) -> |
|
|
rebar_state:get(State, dialyzer_plt, DefaultPlt). |
|
|
rebar_state:get(State, dialyzer_plt, DefaultPlt). |
|
|
|
|
|
|
|
|
default_plt() -> |
|
|
default_plt() -> |
|
|
".rebar3.otp-" ++ otp_version() ++ ".plt". |
|
|
|
|
|
|
|
|
|
|
|
otp_version() -> |
|
|
|
|
|
Release = erlang:system_info(otp_release), |
|
|
|
|
|
try otp_version(Release) of |
|
|
|
|
|
Vsn -> |
|
|
|
|
|
Vsn |
|
|
|
|
|
catch |
|
|
|
|
|
error:_ -> |
|
|
|
|
|
Release |
|
|
|
|
|
end. |
|
|
|
|
|
|
|
|
|
|
|
otp_version(Release) -> |
|
|
|
|
|
File = filename:join([code:root_dir(), "releases", Release, "OTP_VERSION"]), |
|
|
|
|
|
{ok, Contents} = file:read_file(File), |
|
|
|
|
|
[Vsn] = binary:split(Contents, [<<$\n>>], [global, trim]), |
|
|
|
|
|
[_ | _] = unicode:characters_to_list(Vsn). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
".rebar3.otp-" ++ rebar_utils:otp_release() ++ ".plt". |
|
|
|
|
|
|
|
|
do(State, Plt, Apps) -> |
|
|
do(State, Plt, Apps) -> |
|
|
{PltWarnings, State1} = update_proj_plt(State, Plt, Apps), |
|
|
{PltWarnings, State1} = update_proj_plt(State, Plt, Apps), |
|
|