简体   繁体   English

生锈货物初始签名验证失败

[英]rust cargo init occur signature verification failed

i try to use cargo init to init cargo manage system. 我尝试使用货物初始化初始货物管理系统。

but i can't see the $HOME/.cargo dir generate. 但我看不到$ HOME / .cargo dir生成。

and the shell show 而shell显示

macmatoMacBook-Air:rust kula$ cargo init
warning: signature verification failed for sources.json

macmatoMacBook-Air:rust kula$ cargo sync
error: No sources defined. You may wish to run "cargo init" then "cargo sync".

what's up on the cargo manage system? 怎么了货物管理系统?

my os is mac osx 10.7 我的操作系统是mac osx 10.7

cargo appears to shell out to GPG and use crappy regexes on the output. 货物似乎支持GPG并在输出上使用蹩脚的正则表达式。 Which fails if your locale isn't what it expects. 如果您的语言环境不符合预期,则会失败。 This worked for me: 这对我有用:

LC_MESSAGES=C cargo init

The issue is likely that you don't have gpg installed so it can't verify the signature of cargo-central's source file, and then proceeds to not work at all. 问题很可能是你没有安装gpg因此它无法验证cargo-central的源文件的签名,然后根本不能工作。

This situation where signature verification fails is supposed to be non-fatal, but there was a bug in cargo that caused it to not complete the 'init' command. 签名验证失败的这种情况应该是非致命的,但是货物中存在一个导致它无法完成'init'命令的错误。

I've checked in a change to cargo that I believe should allow it to continue even when signature verification fails, but FWIW cargo could use some love to make it more useful and reliable. 我检查了货物的变化,我认为即使签名验证失败也应该允许它继续,但FWIW货物可以使用一些爱来使它更有用和可靠。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM