Skip to content

Commit 2f13d9f

Browse files
Disable registry index fetch optimization
This breaks with the sparse index being on by default. The right fix might be to configure Cargo to continue using the git index, but it's not super clear and potentially with the sparse index the fetches will be fast enough that we don't need to worry that much.
1 parent 7379810 commit 2f13d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ impl Crater {
545545
fn workspace(&self, docker_env: Option<&str>, fast_init: bool) -> Result<Workspace, Error> {
546546
let mut builder = WorkspaceBuilder::new(&crater::dirs::WORK_DIR, &crater::USER_AGENT)
547547
.fast_init(fast_init)
548-
.fetch_registry_index_during_builds(false)
548+
.fetch_registry_index_during_builds(true)
549549
.command_timeout(Some(Duration::from_secs(15 * 60)))
550550
.command_no_output_timeout(Some(Duration::from_secs(5 * 60)))
551551
.running_inside_docker(std::env::var("CRATER_INSIDE_DOCKER").is_ok());

0 commit comments

Comments
 (0)