Packages
partisan
6.0.0
6.0.0
5.0.3
5.0.2
5.0.1
5.0.0
5.0.0-rc.16
5.0.0-rc.8
5.0.0-rc.2
5.0.0-rc.1
5.0.0-beta.24
5.0.0-beta.21
5.0.0-beta.20
5.0.0-beta.18
5.0.0-beta.17
5.0.0-beta.16
5.0.0-beta.15
5.0.0-beta.14
5.0.0-beta.13
4.1.0
3.0.0
2.1.0
2.0.0
1.4.1
1.4.0
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
1.0.2
1.0.1
1.0.0
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
0.0.1
Partisan is a scalable and flexible, TCP-based membership system and distribution layer for the BEAM.
Current section
Files
Jump to
Current section
Files
rebar.config.script
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et
%%
%% CONFIG is a special variable injected by rebar3.
Vsn = erlang:system_info(otp_release),
%% Check minimum OTP version. Compare as an integer: `erlang:system_info(
%% otp_release)' is a string like "27", and a lexicographic string compare is
%% wrong across digit counts (e.g. "9" >= "27" is `true', "100" >= "27" is
%% `false').
CheckOtpVersion = fun(V, Acc) ->
case catch list_to_integer(V) of
N when is_integer(N), N >= 27 ->
Acc;
_ ->
exit("OTP version " ++ V ++ " not supported by Partisan. Requires OTP 27+.")
end
end,
%% NOTE: the post_hook that generates the partisan OTP modules
%% (`partisan_gen_server', `partisan_gen_statem', …) used to live here. It
%% has been moved to `rebar.config' so it is honoured deterministically
%% when partisan is consumed as a hex/git dependency — some rebar3
%% versions do not evaluate a dep's `rebar.config.script' on first
%% fetch, which left consumer projects without the generated modules.
CheckOtpVersion(Vsn, CONFIG).