Skip to content

Commit aa28f9a

Browse files
khamilowiczclaude
andcommitted
Fix Elixir 1.19 and OTP 28 compatibility
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2dfcdea commit aa28f9a

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,7 @@ $RECYCLE.BIN/
176176
# Windows shortcuts
177177
*.lnk
178178

179-
# End of https://www.gitignore.io/api/c,vim,linux,macos,elixir,windows,visualstudiocode
179+
# End of https://www.gitignore.io/api/c,vim,linux,macos,elixir,windows,visualstudiocode
180+
181+
# Dialyzer PLT cache
182+
/priv/plts/

mix.exs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,22 @@ defmodule Membrane.Generator.Plugin.Mixfile do
4040
{:membrane_raw_video_format, "~> 0.3"},
4141
{:membrane_audio_mix_plugin, "~> 0.16.0", only: :test},
4242
{:membrane_h264_ffmpeg_plugin, "~> 0.31.0", only: :test},
43-
{:credo, ">= 0.0.0", only: :dev, runtime: false},
44-
{:dialyxir, ">= 0.0.0", only: :dev, runtime: false},
45-
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
43+
{:credo, "~> 1.7", only: :dev, runtime: false},
44+
{:dialyxir, "~> 1.4", only: :dev, runtime: false},
45+
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
4646
]
4747
end
4848

4949
defp dialyzer() do
5050
opts = [
51-
plt_local_path: "priv/plts",
52-
flags: [:error_handling]
51+
flags: [:error_handling],
52+
plt_add_apps: [:mix, :syntax_tools]
5353
]
5454

5555
if System.get_env("CI") == "true" do
56-
[plt_core_path: "priv/plts"] ++ opts
56+
# Store PLTs in cacheable directory for CI
57+
File.mkdir_p!(Path.join([__DIR__, "priv", "plts"]))
58+
[plt_local_path: "priv/plts", plt_core_path: "priv/plts"] ++ opts
5759
else
5860
opts
5961
end

0 commit comments

Comments
 (0)