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

grpc requires Cowboy ~> 2.2.0, phoenix requires 1.0 #47

Closed
ospaarmann opened this issue Mar 13, 2018 · 2 comments
Closed

grpc requires Cowboy ~> 2.2.0, phoenix requires 1.0 #47

ospaarmann opened this issue Mar 13, 2018 · 2 comments

Comments

@ospaarmann
Copy link

Currently grpc-elixir requires cowboy ~> 2.2.0. When trying to use it inside a phoenix app this causes an issue because phoenix itself requires cowboy ~> 1.0.

Failed to use "cowboy" (version 1.1.2) because
  apps/trope_api/mix.exs requires ~> 1.0
  deps/grpc/mix.exs requires ~> 2.2.0
  phoenix (version 1.3.2) requires ~> 1.0
  mix.lock specifies 1.1.2

** (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}

Is Cowboy 2.2.0 really necessary or could you go down with the version in your mix.exs?

@ospaarmann
Copy link
Author

Nevermind. I just realized you need Cowboy 2. For anyone interested, here is a guide on how to use Cowboy 2 with Phoenix 1.3: https://maartenvanvliet.nl/2017/12/15/upgrading_phoenix_to_http2/

@tony612
Copy link
Collaborator

tony612 commented Mar 14, 2018

Yes, it requires cowboy ~> 2.2.0 :)

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

2 participants