首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >打破奇偶校验衬底中的依赖关系教程

打破奇偶校验衬底中的依赖关系教程
EN

Stack Overflow用户
提问于 2021-06-21 23:56:57
回答 1查看 70关注 0票数 0

目前在完成https://substrate.dev/docs/en/tutorials/add-a-pallet/import-a-pallet时,有一个依赖问题:

代码语言:javascript
复制
 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
EN

回答 1

Stack Overflow用户

发布于 2021-07-02 03:31:53

您可以更新这个有问题的包的依赖项:https://doc.rust-lang.org/cargo/commands/cargo-update.html

代码语言:javascript
复制
cargo update -p log
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68071097

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档