jeremyjh/dialyxir

Update PLT when child dependencies change

开放

#232 创建于 2018年8月16日

 (8 条评论) (0 个反应) (0 位负责人)Elixir (160 个派生)batch import
help wanted

仓库指标

星标
 (1,794 个星标)
PR 合并指标
 (平均合并 122天 13小时) (30 天内合并 1 个 PR)

描述

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.

贡献者指南