-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
ringrtc tracks libsignal on git, introduces duplicate dependency #55
Comments
Teeeechnically, since we haven't been bumping the version for the zkgroup crate and changes usually aren't breaking, I would expect you to be able to |
I think the |
Another effect:
There's a trick though:
... but that duplicates all transitive dependencies, yielding to other conflicts. Not ideal for now... |
Definitely not ideal. As a workaround, though, you could |
Yes, correct indeed, that's what I went with for now: [patch."https://github.com/signalapp/libsignal/"]
# The source and target refs are the same URL. If we add another / in there,
# cargo sees this as a valid patch. Very ugly workaround.
# https://github.com/rust-lang/cargo/issues/5478#issuecomment-1055365283
zkgroup = { git = "https://github.com/signalapp//libsignal", tag = "v0.56.1" }
libsignal-core = { git = "https://github.com/signalapp//libsignal", tag = "v0.56.1" }
signal-crypto = { git = "https://github.com/signalapp//libsignal", tag = "v0.56.1" } |
ringrtc depends (currently) on:
Signal Android depends (currently) on:
On applications that use FFI, this doesn't really matter, because ringrtc and libsignal get pulled in independently. However, Rust applications that pull in ringrtc and libsignal in the same Rust dependency tree yield a conflict on
cargo doc
:Keeping the
ringrtc
git tag version spec in sync with apps is, in my opinion, only a band-aid here. Releasing on crates.io (signalapp/libsignal#490) would probably resolve this correctly, because it allows to track the versions of the actual crates, instead of depending on a git tag. I'll submit a PR for bumping libsignal on this repo now.I'm not sure whether I should post this issue here or on libsignal itself. It might make more sense over there...
The text was updated successfully, but these errors were encountered: