Skip to content

Commit

Permalink
update- Add compatibility with OTP 26 and 27
Browse files Browse the repository at this point in the history
  • Loading branch information
elbrujohalcon committed Oct 30, 2024
1 parent ab627de commit 9dfd3f8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
otp: [25]
otp: [25, 26, 27]
rebar: [3.24]
steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 10 additions & 0 deletions rebar.config.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
case string:to_integer(
erlang:system_info(otp_release))
of
{N, _} when N >= 26 ->
{value, {dialyzer, DOpts}, Config} = lists:keytake(dialyzer, 1, CONFIG),
{value, {warnings, Warnings}, OtherDOpts} = lists:keytake(warnings, 1, DOpts),
[{dialyzer, [{warnings, [no_unknown | Warnings]} | OtherDOpts]} | Config];
_ ->
CONFIG
end.
3 changes: 1 addition & 2 deletions test/typer_core_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ empty(_) ->

bad_plt(_) ->
ct:comment("With an invalid plt.. we get an error"),
[{abort,
<<"typer: Dialyzer's PLT is missing or is not up-to-date; please (re)create it">>}] =
[{abort, <<"typer: ", _Message/binary>>}] =
run_typer(#{files_r => [abs_test_path("single_file")], plt => "bad.plt"}),
{comment, ""}.

Expand Down

0 comments on commit 9dfd3f8

Please sign in to comment.