-
Notifications
You must be signed in to change notification settings - Fork 5
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
Version conflict on if-addrs-sys #4
Comments
@dEvK4n3Ki were you able to solve the issue? I encountered the same thing. It looks like the latest version of rust-ipfs uses libp2p 0.34.0 but the older libs used in this repo use 0.28.1. One fix is to specify the tag = "[email protected]", which uses libp2p 0.28.1. I have a fork that does that: https://github.com/driemworks/substrate/tree/offchain_ipfs_wsl edit: should be [email protected], not 0.2.1. |
Can you tell me where to add tag ="[email protected]". Should I add it in the docker version? |
There are three packages that depend on ipfs, so the tag needs to be specified in the Cargo.toml in each. I'm using WSL so if your system is different this could differ. I'm only able to get the project to run using ngihtly-2020-08-23. That is, running |
@driemworks Thanks for your reply. Please let me know how to fix this. |
The error says wasm32-unknown-unknown target may not be installed. Install it: |
There seems to be an issue with the if-addrs-sys package, i tried checking and building with cargo right out of the box and i am unable to. When i do run
cargo check
i get the following error:
Updating git repository
https://github.com/rs-ipfs/rust-ipfs`Updating crates.io index
Updating git repository
https://github.com/NLnetLabs/domain.git
error: failed to select a version for
if-addrs-sys
.... required by package
if-addrs v0.6.4
... which is depended on by
libp2p-tcp v0.27.0
... which is depended on by
libp2p v0.34.0
... which is depended on by
ipfs v0.2.1 (https://github.com/rs-ipfs/rust-ipfs#cf370325)
... which is depended on by
node-cli v2.0.0 (/home/cbnits/Documents/ref/substrate/bin/node/cli)
... which is depended on by
chain-spec-builder v2.0.0 (/home/cbnits/Documents/ref/substrate/bin/utils/chain-spec-builder)
versions that meet the requirements
^0.3
are: 0.3.2, 0.3.1the package
if-addrs-sys
links to the native libraryifaddrs
, but it conflicts with a previous package which links toifaddrs
as well:package
get_if_addrs-sys v0.1.1
... which is depended on by
get_if_addrs v0.5.3
... which is depended on by
libp2p-tcp v0.22.0
... which is depended on by
libp2p v0.28.1
... which is depended on by
node-browser-testing v2.0.0 (/home/cbnits/Documents/ref/substrate/bin/node/browser-testing)
failed to select a version for
if-addrs-sys
which could resolve this conflict`
What do you think is the solution to this?
Reference Screenshot:
The text was updated successfully, but these errors were encountered: