jeremyjh/dialyxir

Update PLT when child dependencies change

Offen

#232 geöffnet am 16.08.2018

 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Elixir (160 Forks)batch import
help wanted

Repository-Metriken

Stars
 (1.794 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 122T 13h) (1 gemergte PR in 30 T)

Beschreibung

Happens with Elixir 1.7.2 and Dialyxir 0.5.1

  • I have an umbrella project with several child projects;

  • The umbrella and the child projects have the following in their mix.exs files (and nothing else regarding dialyxir):

defp deps do
    [
      ...
      {:dialyxir, "~> 0.5", only: [:dev, :test]}
      ...
    ]
end
  • Added a new dependency in one of the child projects (this dependency did not exist before in any child project).

Then,

Observed behavior: running mix dialyzer inside the child project does not update the PLT, but running the same command at the umbrella project updates the PLT.

Expected behavior: when child dependencies change, running mix dialyzer inside the corresponding child project, or running at the umbrella project, should update the PLT. The PLT check should always run, unless mix dialyzer --no-check is run.

Contributor Guide