fix(bpapi): Add exceptions for experimental features

This commit is contained in:
ieQu1 2024-03-28 12:03:41 +01:00
parent 8c6d8bdd12
commit b1855f95c1
No known key found for this signature in database
GPG Key ID: 488654DF3FED6FDE
1 changed files with 6 additions and 7 deletions

View File

@ -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