Skip to content

Commit 76293b3

Browse files
committed
Auto merge of #11247 - arlosi:fix-sparse, r=Eh2406
Remove sparse+ prefix for index.crates.io ### What does this PR try to resolve? #11209 changed how sparse registry URLs are stored in a `SourceId` to remove the `sparse+` prefix, however the URL was not updated. Fixes #11246 ### How should we test and review this PR? Run a command that requires sparse registry `cargo -Z sparse-registry update --dry-run` Tests can't really be added for this case, since the `index.crates.io` URL was incorrect, and tests shouldn't access the network. r? `@Eh2406`
2 parents afadab2 + fe7ff11 commit 76293b3

File tree

1 file changed

+1
-1
lines changed
  • src/cargo/sources/registry

1 file changed

+1
-1
lines changed

src/cargo/sources/registry/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ use crate::util::{
188188

189189
const PACKAGE_SOURCE_LOCK: &str = ".cargo-ok";
190190
pub const CRATES_IO_INDEX: &str = "https://github.com/rust-lang/crates.io-index";
191-
pub const CRATES_IO_HTTP_INDEX: &str = "sparse+https://index.crates.io/";
191+
pub const CRATES_IO_HTTP_INDEX: &str = "https://index.crates.io/";
192192
pub const CRATES_IO_REGISTRY: &str = "crates-io";
193193
pub const CRATES_IO_DOMAIN: &str = "crates.io";
194194
const CRATE_TEMPLATE: &str = "{crate}";

0 commit comments

Comments
 (0)