fix(bpapi): Add exceptions for experimental features
This commit is contained in:
parent
8c6d8bdd12
commit
b1855f95c1
|
@ -139,12 +139,12 @@ check_api_immutability(#{release := Rel1, api := APIs1}, #{release := Rel2, api
|
||||||
%% TODO: Handle API deprecation
|
%% TODO: Handle API deprecation
|
||||||
_ = maps:map(
|
_ = maps:map(
|
||||||
fun(Key, Val) ->
|
fun(Key, Val) ->
|
||||||
case lists:member(Key, ?EXPERIMENTAL_APIS) of
|
case lists:member(Key, ?EXPERIMENTAL_APIS) of
|
||||||
true ->
|
true ->
|
||||||
ok;
|
ok;
|
||||||
false ->
|
false ->
|
||||||
do_check_api_immutability(Rel1, Rel2, APIs2, Key, Val)
|
do_check_api_immutability(Rel1, Rel2, APIs2, Key, Val)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
APIs1
|
APIs1
|
||||||
),
|
),
|
||||||
|
@ -178,7 +178,6 @@ do_check_api_immutability(Rel1, Rel2, APIs2, Key = {API, Version}, Val) ->
|
||||||
logger:error("Removed calls:~n ~p", [D12])
|
logger:error("Removed calls:~n ~p", [D12])
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
filter_calls(Calls) ->
|
filter_calls(Calls) ->
|
||||||
F = fun({{Mf, _, _}, {Mt, _, _}}) ->
|
F = fun({{Mf, _, _}, {Mt, _, _}}) ->
|
||||||
(not lists:member(Mf, ?FORCE_DELETED_MODULES)) andalso
|
(not lists:member(Mf, ?FORCE_DELETED_MODULES)) andalso
|
||||||
|
|
Loading…
Reference in New Issue