Reputation: 2765
Currently on completing https://substrate.dev/docs/en/tutorials/add-a-pallet/import-a-pallet there's a dependency issue:
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
Upvotes: 1
Views: 352
Reputation: 1082
You can update your dependenies for this specific problematic package: https://doc.rust-lang.org/cargo/commands/cargo-update.html
cargo update -p log
Upvotes: 1