目前在完成https://substrate.dev/docs/en/tutorials/add-a-pallet/import-a-pallet时,有一个依赖问题:
cargo check -p node-template-runtime
Updating git repository `https://github.com/paritytech/substrate.git`
Updating crates.io index
error: failed to select a version for `log`.
... required by package `pallet-balances v3.0.0 (https://github.com/paritytech/substrate.git?tag=monthly-2021-05#70ef0afc)`
... which is depended on by `node-template-runtime v3.0.0 (/Users/jontyn/sandbox/substrate/substrate-node-template/runtime)`
... which is depended on by `node-template v3.0.0 (/Users/jontyn/sandbox/substrate/substrate-node-template/node)`
versions that meet the requirements `^0.4.14` are: 0.4.14
all possible versions conflict with previously selected packages.
previously selected package `log v0.4.13`
... which is depended on by `frame-support v3.0.0`
... which is depended on by `frame-benchmarking v3.0.0`
... which is depended on by `frame-benchmarking-cli v3.0.0`
... which is depended on by `node-template v3.0.0 (/Users/jontyn/sandbox/substrate/substrate-node-template/node)`
failed to select a version for `log` which could resolve this conflict发布于 2021-07-02 03:31:53
您可以更新这个有问题的包的依赖项:https://doc.rust-lang.org/cargo/commands/cargo-update.html
cargo update -p loghttps://stackoverflow.com/questions/68071097
复制相似问题