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

** (Mix) Hex dependency resolution failed (HTTPoison version conflict) #146

Closed
nelsonic opened this issue Oct 5, 2021 · 10 comments
Closed
Labels
chore a tedious but necessary task often paying technical debt

Comments

@nelsonic
Copy link
Member

nelsonic commented Oct 5, 2021

image

Failed to use "httpoison" (version 1.8.0) because
  elixir_auth_github (version 1.5.0) requires ~> 1.8.0
  elixir_auth_google (version 1.3.0) requires ~> 1.7.0

GOTO: dwyl/elixir-auth-google#44

@nelsonic nelsonic added the chore a tedious but necessary task often paying technical debt label Oct 5, 2021
@SimonLab
Copy link
Member

SimonLab commented Oct 5, 2021

Same error on my side:
image

Once elixir-auth-google new version is published (see dwyl/elixir-auth-google#45) this should resolve the error. We might need to update also Phoenix to 1.6

@nelsonic
Copy link
Member Author

nelsonic commented Oct 5, 2021

Package published to https://hex.pm/packages/elixir_auth_google/1.5.0 📦 ✅
Gonna try the update on my side. 👍

@nelsonic
Copy link
Member Author

nelsonic commented Oct 5, 2021

As for updating to Phoenix 1.6, see: dwyl/elixir-auth-github-demo#18
I've created the same for the google one: dwyl/elixir-auth-google-demo#7

@nelsonic
Copy link
Member Author

nelsonic commented Oct 5, 2021

This time it's for rbac ...

Failed to use "httpoison" (version 1.8.0) because
  elixir_auth_github (version 1.5.0) requires ~> 1.8.0
  elixir_auth_google (version 1.5.0) requires ~> 1.8.0
  rbac (version 0.5.0) requires ~> 1.7.0

GOTO: dwyl/rbac#16

@nelsonic
Copy link
Member Author

nelsonic commented Oct 6, 2021

Published an interim version of the rbac package: https://hex.pm/packages/rbac/0.5.3 📦
Just so that we can continue debugging auth ... dwyl/rbac#16 (comment)

mix deps.clean --all
n@MBP auth % mix deps.get
Resolving Hex dependencies...

Failed to use "ecto" (versions 3.0.0 to 3.7.1) because
  ecto_sql (version 3.4.5) requires ~> 3.4.3
  phoenix_ecto (version 4.2.0) requires ~> 3.0


Failed to use "ecto" (versions 3.4.3 to 3.4.6) because
  ecto_sql (version 3.4.5) requires ~> 3.4.3
  fields (version 2.8.2) requires ~> 3.7.1
  phoenix_ecto (version 4.2.0) requires ~> 3.0


Failed to use "plug" (versions 1.11.0 to 1.12.1) because
  auth_plug (version 1.2.3) requires ~> 1.10.4
  phoenix (version 1.5.4) requires ~> 1.10
  phoenix_ecto (version 4.2.0) requires ~> 1.0
  phoenix_html (version 2.14.2) requires ~> 1.5
  plug_cowboy (version 2.3.0) requires ~> 1.7

** (Mix) Hex dependency resolution failed, change the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, "~> 1.0", override: true}
n@MBP auth %

Ok this is frustrating ... basically we are forced to upgrade everything just to get this working again! 🤦‍♂️

@nelsonic
Copy link
Member Author

nelsonic commented Oct 6, 2021

Updating auth_plug: dwyl/auth_plug#29

@nelsonic
Copy link
Member Author

nelsonic commented Oct 6, 2021

auth_plug updated dwyl/auth_plug#30 and new version published to https://hex.pm/packages/auth_plug/1.3.0

nelsonic added a commit that referenced this issue Oct 6, 2021
@nelsonic

This comment has been minimized.

nelsonic added a commit that referenced this issue Oct 6, 2021
@nelsonic
Copy link
Member Author

nelsonic commented Oct 7, 2021

Back in business!
image

@nelsonic
Copy link
Member Author

nelsonic commented Oct 7, 2021

Looks like this is working again: https://dwylauth.herokuapp.com/apps
image

Closing this issue and picking up the next one. ✅

@nelsonic nelsonic closed this as completed Oct 7, 2021
@nelsonic nelsonic mentioned this issue Oct 7, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore a tedious but necessary task often paying technical debt
Projects
None yet
Development

No branches or pull requests

2 participants