cargo-outdated icon indicating copy to clipboard operation
cargo-outdated copied to clipboard

Support alternate source

Open sharksforarms opened this issue 7 years ago • 3 comments

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

sharksforarms avatar Apr 24 '18 19:04 sharksforarms

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.

sharksforarms avatar May 28 '18 20:05 sharksforarms

Any plans on supporting alternate crate repos?

sharksforarms avatar Nov 15 '18 21:11 sharksforarms

I'm having this problem too and hope it's resolved soon.

gmg137 avatar Apr 20 '20 01:04 gmg137