iex(1)> Mix.install([
...(1)> {:phoenix, "~> 1.7.0"},
...(1)> {:scrivener_html, github: "jaimeiniesta/scrivener_html", branch: "relax_phoenix_dep"},
...(1)> ])
* Getting scrivener_html (https://github.com/jaimeiniesta/scrivener_html.git - origin/relax_phoenix_dep)
remote: Enumerating objects: 831, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 831 (delta 2), reused 1 (delta 1), pack-reused 825
Resolving Hex dependencies...
Resolution completed in 0.021s
Because your app depends on phoenix empty which doesn't match any versions, version solving failed.
** (Mix.Error) Hex dependency resolution failed
After:
iex(1)> Mix.install([
...(1)> {:phoenix, "~> 1.7.0"},
...(1)> {:scrivener_html, github: "jaimeiniesta/scrivener_html", branch: "relax_phoenix_dep"},
...(1)> ])
* Updating scrivener_html (https://github.com/jaimeiniesta/scrivener_html.git - origin/relax_phoenix_dep)
Resolving Hex dependencies...
Resolution completed in 0.029s
Because every version of scrivener_html depends on phoenix >= 1.0.0 and < 1.7.0 and your app depends on phoenix ~> 1.7.0, no version of scrivener_html is allowed.
So, because your app depends on scrivener_html, version solving failed.
** (Mix.Error) Hex dependency resolution failed
Closes https://github.com/hexpm/hex/issues/972.
Before:
After: