RCasatta / electrsd

Utility to run a regtest electrsd process connected to a given bitcoind instance, useful in integration testing environment.
MIT License
21 stars 18 forks source link

failed to select a version for `secp256k1-sys` #39

Open RCasatta opened 2 years ago

RCasatta commented 2 years ago

bumping bitcoind to 0.27.0 cause this error

error: failed to select a version for `secp256k1-sys`.
    ... required by package `secp256k1 v0.22.0`
    ... which satisfies dependency `secp256k1 = "^0.22.0"` of package `bitcoin v0.28.0`
    ... which satisfies dependency `bitcoin = "^0.28"` of package `electrum-client v0.10.2 (/home/casatta/git/rust-electrum-client)`
    ... which satisfies path dependency `electrum-client` of package `electrsd v0.20.0 (/home/casatta/git/electrsd)`
versions that meet the requirements `^0.5.0` are: 0.5.1, 0.5.2, 0.5.0

the package `secp256k1-sys` links to the native library `rustsecp256k1_v0_5_0`, but it conflicts with a previous package which links to `rustsecp256k1_v0_5_0` as well:
package `secp256k1-sys v0.6.0`
    ... which satisfies dependency `secp256k1-sys = "^0.6.0"` of package `secp256k1 v0.24.0`
    ... which satisfies dependency `secp256k1 = "^0.24.0"` of package `bitcoin v0.29.1`
    ... which satisfies dependency `bitcoin = "^0.29.0"` of package `bitcoincore-rpc-json v0.16.0`
    ... which satisfies dependency `bitcoincore-rpc-json = "^0.16.0"` of package `bitcoincore-rpc v0.16.0`
    ... which satisfies dependency `bitcoincore-rpc = "^0.16.0"` of package `bitcoind v0.27.0`
    ... which satisfies dependency `bitcoind = "^0.27.0"` of package `electrsd v0.20.0 (/home/casatta/git/electrsd)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='secp256k1-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `secp256k1-sys` which could resolve this conflict
RCasatta commented 2 years ago

rust-electrum-client need to bump bitcoin to 0.29 too to solve the issue