Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update - Add compatibility with OTP 26 and 27 #66

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .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 All @@ -33,7 +33,7 @@ jobs:
runs-on: windows-latest
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