Elixir: Show warning when a package is defined twice in mix.exs

Created on 6 Feb 2017  路  2Comments  路  Source: elixir-lang/elixir

Currently, if you have the following in your mix.exs:

  defp deps do
    [{:ecto, "~> 2.1"},
     {:postgrex, "~> 0.13.0"},
     {:ecto, "~> 2.0"}]
  end

The last definition for ecto is ignored and ~> 2.1 is resolved. It could be useful if multiple definitions of the same dependency (in the same file) exist, to show a warning.

Mix Bug Intermediate

All 2 comments

I can give it a try if no one else is interested. Will start today, maybe I'll open the PR until wednesday.

@kelvinst please do go ahead :) 馃挓

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dmorneau picture dmorneau  路  30Comments

josevalim picture josevalim  路  36Comments

josevalim picture josevalim  路  44Comments

josevalim picture josevalim  路  27Comments

devonestes picture devonestes  路  33Comments