diff --git a/mix.exs b/mix.exs index b20572a..23e8a6f 100644 --- a/mix.exs +++ b/mix.exs @@ -117,8 +117,11 @@ defmodule Mv.MixProject do defp dialyzer do [ - plt_file: {:no_warn, "priv/plts/dialyzer.plt"}, - plt_core_path: "priv/plts/core.plt", + # PLT paths are overridable so the pipeline can point all worktrees/clones + # at a shared, machine-global PLT cache (avoids each rebuilding the PLT). + # Default to the in-repo priv/plts for a plain checkout. + plt_file: {:no_warn, System.get_env("PLT_LOCAL_PATH") || "priv/plts/dialyzer.plt"}, + plt_core_path: System.get_env("PLT_CORE_PATH") || "priv/plts/core.plt", plt_add_apps: [:mix, :ex_unit], flags: [ :error_handling,