Support alternate source
In my workspace we have a clone of crates.io hosted internally on our network.
We're using the following to configure our local setup to point to the mirror: https://doc.rust-lang.org/cargo/reference/source-replacement.html
[source.mymirror]
registry = "git://internaldomain/crates.io-index"
[source.crates-io]
replace-with = "mymirror"
When I run cargo outdated I get the following:
thread 'main' panicked at 'Cannot find matched versions of package x from source registry https://github.com/rust-lang/crates.io-index', libcore/option.rs:917:5
Fixed by adding registry, this ensures that the Cargo.lock file source='s have the right registry...
But with this I get a warning
warning: custom registry support via the 'registry.index' configuration is being removed, this functionality will not work in the future
[registry]
index = "git://internaldomain/crates.io-index"
[source.mymirror]
registry = "git://internaldomain/crates.io-index"
[source.crates-io]
replace-with = "mymirror"
Works for now.
Any plans on supporting alternate crate repos?
I'm having this problem too and hope it's resolved soon.