“Dependencies have diverged” while upgrading to 2.0.0
I'm upgrading from 1.1.9 to 2.0.0. mix deps.get
(su -ls /bin/bash -c "mix deps.get" pleroma
to be precise) reports this:
Dependencies have diverged:
* earmark (Hex package)
the dependency earmark 1.3.6
> In mix.exs:
{:earmark, "~> 1.3", [env: :prod, repo: "hexpm", hex: "earmark"]}
does not match the requirement specified
> In deps/ex_doc/mix.exs:
{:earmark, "~> 1.4", [only: :dev, env: :prod, hex: "earmark", repo: "hexpm", optional: false]}
Ensure they match or specify one of the above in your deps and set "override: true"
* db_connection (Hex package)
the dependency db_connection 2.1.1
> In deps/postgrex/mix.exs:
{:db_connection, "~> 2.1", [env: :prod, hex: "db_connection", repo: "hexpm", optional: false]}
does not match the requirement specified
> In deps/ecto_sql/mix.exs:
{:db_connection, "~> 2.2", [env: :prod, hex: "db_connection", repo: "hexpm", optional: false]}
Ensure they match or specify one of the above in your deps and set "override: true"
* ecto (Hex package)
the dependency ecto 3.1.4
> In deps/prometheus_ecto/mix.exs:
{:ecto, "~> 2.0 or ~> 3.0", [env: :prod, hex: "ecto", repo: "hexpm", optional: false]}
does not match the requirement specified
> In deps/ecto_sql/mix.exs:
{:ecto, "~> 3.4 or ~> 3.3.3", [env: :prod, hex: "ecto", repo: "hexpm", optional: false]}
Ensure they match or specify one of the above in your deps and set "override: true"
* postgrex (Hex package)
the dependency postgrex 0.14.3
> In mix.exs:
{:postgrex, ">= 0.13.5", [env: :prod, repo: "hexpm", hex: "postgrex"]}
does not match the requirement specified
> In deps/ecto_sql/mix.exs:
{:postgrex, "~> 0.15.0", [env: :prod, hex: "postgrex", repo: "hexpm", optional: true]}
Ensure they match or specify one of the above in your deps and set "override: true"
** (Mix) Can't continue due to errors on dependencies
I've set override: true
on the never versions and it seems to work (server is up for ~5 minutes).
Edited by tastytea