Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

sc-cli can not be built - suspected broken dependency chain #9703

Closed
frisitano opened this issue Sep 6, 2021 · 3 comments
Closed

sc-cli can not be built - suspected broken dependency chain #9703

frisitano opened this issue Sep 6, 2021 · 3 comments
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.

Comments

@frisitano
Copy link

sc-cli will not build anymore. I believe this is due to the one of the nested dependencies aes-soft ^0.5.0 being yanked. See below to recreate.

❯ cargo new hello_world --bin
     Created binary (application) `hello_world` package
❯ cd hello_world
❯ echo "sc-cli = { version = \"0.9.0\" }" >> Cargo.toml
❯ cat Cargo.toml
[package]
name = "hello_world"
version = "0.1.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
sc-cli = { version = "0.9.0" }
❯ cargo build
    Updating crates.io index
error: failed to select a version for `snow`.
    ... required by package `libp2p-noise v0.29.0`
    ... which is depended on by `libp2p v0.34.0`
    ... which is depended on by `sc-cli v0.9.0`
    ... which is depended on by `hello_world v0.1.0 (PycharmProjects/reef/hello_world)`
versions that meet the requirements `^0.7.1` are: 0.7.2, 0.7.1

all possible versions conflict with previously selected packages.

  previously selected package `snow v0.7.1`
    ... which is depended on by `libp2p-noise v0.29.0`
    ... which is depended on by `libp2p v0.34.0`
    ... which is depended on by `sc-cli v0.9.0`
    ... which is depended on by `hello_world v0.1.0 (PycharmProjects/reef/hello_world)`

failed to select a version for `snow` which could resolve this conflict
@github-actions github-actions bot added the J2-unconfirmed Issue might be valid, but it’s not yet known. label Sep 6, 2021
@frisitano
Copy link
Author

related to #9680

@morgueye4
Copy link

We are also running to this issue when doing a cargo update

Updating crates.io index error: failed to select a version forsnow. ... required by package libp2p-noise v0.29.0... which satisfies dependencylibp2p-noise = "^0.29.0"of packagelibp2p v0.34.0... which satisfies dependencylibp2p = "^0.34.0"of packagesc-cli v0.9.0... which satisfies dependencysc-cli = "^0.9.0"of packageframe-benchmarking-cli v3.0.0... which satisfies dependencyframe-benchmarking-cli = "^3.0.0"of packagependulum-node v3.0.0 (/mnt/c/dev/work/pendulum-prototype/node)versions that meet the requirements^0.7.1` are: 0.7.2, 0.7.1

all possible versions conflict with previously selected packages.

previously selected package snow v0.7.1
... which satisfies dependency snow = "^0.7.1" of package libp2p-noise v0.29.0
... which satisfies dependency libp2p-noise = "^0.29.0" of package libp2p v0.34.0
... which satisfies dependency libp2p = "^0.34.0" of package sc-cli v0.9.0
... which satisfies dependency sc-cli = "^0.9.0" of package frame-benchmarking-cli v3.0.0
... which satisfies dependency frame-benchmarking-cli = "^3.0.0" of package pendulum-node v3.0.0 (/mnt/c/dev/work/pendulum-prototype/node)

failed to select a version for snow which could resolve this conflict
`

@frisitano
Copy link
Author

using newer version of substrate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.
Projects
None yet
Development

No branches or pull requests

2 participants