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
_ = maps:map(
fun(Key, Val) ->
case lists:member(Key, ?EXPERIMENTAL_APIS) of
true ->
ok;
false ->
do_check_api_immutability(Rel1, Rel2, APIs2, Key, Val)
end
case lists:member(Key, ?EXPERIMENTAL_APIS) of
true ->
ok;
false ->
do_check_api_immutability(Rel1, Rel2, APIs2, Key, Val)
end
end,
APIs1
),
@ -178,7 +178,6 @@ do_check_api_immutability(Rel1, Rel2, APIs2, Key = {API, Version}, Val) ->
logger:error("Removed calls:~n ~p", [D12])
end.
filter_calls(Calls) ->
F = fun({{Mf, _, _}, {Mt, _, _}}) ->
(not lists:member(Mf, ?FORCE_DELETED_MODULES)) andalso