Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies have diverged #56

Open
jg-made opened this issue Feb 7, 2020 · 1 comment
Open

Dependencies have diverged #56

jg-made opened this issue Feb 7, 2020 · 1 comment

Comments

@jg-made
Copy link

jg-made commented Feb 7, 2020

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
@jg-made
Copy link
Author

jg-made commented Feb 20, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant