elixir-webrtc / ex_webrtc

An Elixir implementation of the W3C WebRTC API
Apache License 2.0
363 stars 14 forks source link

Dependency conflict when using ex_webrtc in a new Phoenix project #128

Closed filipevarjao closed 4 months ago

filipevarjao commented 4 months ago

While creating a new phoenix app {:phoenix, "~> 1.7.14"} Trying to fetch ex_webrtc dependency

Because the lock depends on swoosh 1.16.9 which depends on req ~> 0.5 or ~> 1.0, the lock requires req ~> 0.5 or ~> 1.0.
And because bundlex >= 1.2.0 depends on req ~> 0.4.0, the lock is incompatible with bundlex >= 1.2.0.
And because ex_libsrtp >= 0.7.1 depends on bundlex ~> 1.3, the lock is incompatible with ex_libsrtp >= 0.7.1.
And because every version of ex_webrtc depends on ex_libsrtp ~> 0.7.1, the lock is incompatible with ex_webrtc.
And because your app depends on the lock, no version of ex_webrtc is allowed.
So, because your app depends on ex_webrtc ~> 0.3.0, version solving failed.

PS. the project is brain-new, the only dependency added after creating was ex_webrtc.

mickel8 commented 4 months ago

Thanks for the issue! Looks like the fix in bundlex has already been merged so the only remainign thing is to release its new version.

I will let you know once this happens.

For now, from my experiments, doing mix deps.update --all --force should help

filipevarjao commented 4 months ago

worked for me, thank you very much

mickel8 commented 4 months ago

Waiting for https://github.com/membraneframework/bundlex/pull/129 to be merged

mickel8 commented 4 months ago

Bundlex 1.5.2 has been released so now, everything should work correctly. Please reopen if you still encounter any problems! :slightly_smiling_face: