تصدأ بضائع الصدأ فشل التحقق من التوقيع

StackOverflow https://stackoverflow.com//questions/9646490

  •  10-12-2019
  •  | 
  •  

سؤال

أحاول استخدام Cargo Init لنظام إدارة البضائع Init.

لكنني لا أستطيع رؤية $ Home / .cargo dir تولد.

و Shell Show giveacodicetagpre.

ما الأمر على نظام إدارة الشحنات؟

نظام التشغيل الخاص بي هو Mac OSX 10.7

هل كانت مفيدة؟

المحلول

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.

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.

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.

نصائح أخرى

cargo appears to shell out to GPG and use crappy regexes on the output. Which fails if your locale isn't what it expects. This worked for me:

LC_MESSAGES=C cargo init
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top