Skip to content

Commit e597343

Browse files
update - Add compatibility with OTP 26 and 27 (#66)
* update- Add compatibility with OTP 26 and 27 * update- Also for Windows
1 parent ab627de commit e597343

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-20.04
1616
strategy:
1717
matrix:
18-
otp: [25]
18+
otp: [25, 26, 27]
1919
rebar: [3.24]
2020
steps:
2121
- uses: actions/checkout@v4
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: windows-latest
3434
strategy:
3535
matrix:
36-
otp: [25]
36+
otp: [25, 26, 27]
3737
rebar: [3.24]
3838
steps:
3939
- uses: actions/checkout@v4

rebar.config.script

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
case string:to_integer(
2+
erlang:system_info(otp_release))
3+
of
4+
{N, _} when N >= 26 ->
5+
{value, {dialyzer, DOpts}, Config} = lists:keytake(dialyzer, 1, CONFIG),
6+
{value, {warnings, Warnings}, OtherDOpts} = lists:keytake(warnings, 1, DOpts),
7+
[{dialyzer, [{warnings, [no_unknown | Warnings]} | OtherDOpts]} | Config];
8+
_ ->
9+
CONFIG
10+
end.

test/typer_core_SUITE.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ empty(_) ->
3636

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

0 commit comments

Comments
 (0)