You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Publishing with a crates.io mirror has a confusing error message #6722
Problem
If one is using a mirror of crates.io, the error message you get when you attempt to publish is confusing. It says:
error: crates cannot be published to crates.io with dependencies sourced from other
registries either publish `bitflags` on crates.io or pull it into this repository
and specify it with a path and version
(crate `bitflags` is pulled from registry `https://github.com/rust-lang/crates.io-index`)
The last line clearly says that it is from "crates.io".
Connection to GitHub is basically trash for some ISPs in China, so a mirror is sometimes required. Having to comment out ~/.cargo/config every time I need to publish a crate can be annoying.
Activity
clearloop commentedon May 23, 2019
Same problem, annotated
~/.cargo/configtemporarily.kmod-midori commentedon Dec 14, 2020
Connection to GitHub is basically trash for some ISPs in China, so a mirror is sometimes required. Having to comment out
~/.cargo/configevery time I need to publish a crate can be annoying.ehuss commentedon Dec 7, 2022
Closing since I believe this is now fixed via #10907. The new error message is: