Skip to content

Commit

Permalink
Merge pull request #1255 from paulo-ferraz-oliveira/fix/dialyzer-in-c…
Browse files Browse the repository at this point in the history
…i-elixir-1.15

Adapt to 1.15's code path pruning, for dialyxir'ing purposes
  • Loading branch information
benwilson512 authored Jun 30, 2023
2 parents 7d75be7 + 66c21a1 commit 2a84558
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ defmodule Absinthe.Mixfile do
plt_add_deps: :apps_direct,
plt_file: {:no_warn, "priv/plts/project.plt"},
plt_add_apps: [:mix, :dataloader, :decimal, :ex_unit]
]
],
prune_code_paths: prune_code_paths(Mix.env())
]
end

Expand Down Expand Up @@ -85,6 +86,9 @@ defmodule Absinthe.Mixfile do
]
end

defp prune_code_paths(:test), do: false
defp prune_code_paths(_), do: true

#
# Documentation
#
Expand Down

0 comments on commit 2a84558

Please sign in to comment.