Packages
locus
1.12.0
2.3.15
2.3.14
2.3.13
2.3.12
2.3.11
2.3.10
2.3.9
2.3.8
2.3.7
2.3.6
2.3.5
2.3.4
2.3.3
retired
2.3.2
2.3.1
2.3.0
2.2.2
2.2.1
2.2.0
2.1.0
2.0.0
1.16.1
1.16.0
1.15.0
1.14.1
1.14.0
1.13.2
1.13.1
1.13.0
1.12.2
1.12.1
1.12.0
1.11.0
1.11.0-beta
1.10.2
1.10.1
1.10.0
1.9.0
1.9.0-beta
1.8.0
1.7.0
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.0
1.3.1
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
MMDB reader for geolocation and ASN lookup of IP addresses, supporting MaxMind GeoLite2/GeoIP2 and other providers
Current section
Files
Jump to
Current section
Files
rebar.config.script
% vim: set ft=erlang:
case erlang:function_exported(rebar3, main, 1) orelse
{deps, lists:keyfind(deps, 1, CONFIG)}
of
true ->
% rebar3
CONFIG;
{deps, false} ->
% no override needed
CONFIG;
{deps, {_, Deps}} ->
%
% rebar 2.x - convert deps to old format
% THIS MAY STOP WORKING AT ANY MOMENT.
% USE AT YOUR OWN RISK.
%
error_logger:warning_msg("~n~n"
"\t!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!~n"
"\t!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!~n"
"\t*********************************************************************~n"
"\t~n"
"\t[locus] You're **strongly** incentivized to use `rebar3`.~n"
"\tCompatibility with rebar 2 is unmaintained and will be removed in the near future.~n"
"\t~n"
"\t*********************************************************************~n"
"\t!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!~n"
"\t!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!~n"),
{_, ErlOpts} = lists:keyfind(erl_opts, 1, CONFIG),
OverriddenErlOpts = ErlOpts -- [warn_missing_spec],
OverriddenSortableDeps =
lists:foldr(
fun ({stacktrace_compat, Version}, Acc) ->
[{1, {stacktrace_compat, ".*",
{git, "https://github.com/g-andrade/stacktrace_compat.git",
{tag, Version}}}}
| Acc];
({tls_certificate_check, Version}, Acc) ->
[{2, {tls_certificate_check, ".*",
{git, "https://github.com/g-andrade/tls_certificate_check.git",
{tag, Version}}}}
| Acc];
({Name, Version}, _Acc) ->
MsgErrorIo = io_lib:format("Hex package '~ts', version \"~ts\": missing Git repo",
[Name, Version]),
error(MsgErrorIo)
end,
[], Deps),
OverriddenDeps = [element(2, Pair) || Pair <- lists:keysort(1, OverriddenSortableDeps)],
Config2 = lists:keystore(deps, 1, CONFIG, {deps,OverriddenDeps}),
lists:keystore(erl_opts, 1, Config2, {erl_opts,OverriddenErlOpts})
end.