chrismccord/phoenix_live_view_example

Dependencies have diverged

jg-made opened this issue · 1 comments

To reproduce:

git clone https://github.com/chrismccord/phoenix_live_view_example
cd phoenix_live_view_example
rm mix.lock
mix deps.get

The last command will fail with the following output:

* Getting phoenix_live_view (https://github.com/phoenixframework/phoenix_live_view.git)
remote: Enumerating objects: 11, done.        
remote: Counting objects: 100% (11/11), done.        
remote: Compressing objects: 100% (11/11), done.        
remote: Total 6260 (delta 0), reused 11 (delta 0), pack-reused 6249        
Dependencies have diverged:
* phoenix (Hex package)
  the dependency phoenix in mix.exs is overriding a child dependency:

  > In mix.exs:
    {:phoenix, "~> 1.4.9", [env: :prod, repo: "hexpm", hex: "phoenix"]}

  > In deps/phoenix_live_view/mix.exs:
    {:phoenix, "~> 1.4.12", [env: :prod, git: "https://github.com/phoen
ixframework/phoenix.git", branch: "v1.4"]}

  Ensure they match or specify one of the above in your deps and set "o
verride: true"
** (Mix) Can't continue due to errors on dependencies

Until live_view milestone is reached, I am just copying the mix.exs from a stable and recently updated repo like https://github.com/mmjosedaniel/live_view_counter if I don't need bleeding edge.