From 4225f6d1c7ea25a4ad250cda440f6bd2af1bd647 Mon Sep 17 00:00:00 2001 From: Everett Pompeii Date: Sun, 16 Jun 2024 09:01:17 -0400 Subject: [PATCH] Skip self-update https://github.com/rust-lang/rustup/issues/3709 --- tasks/test_api/src/task/test/examples.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/test_api/src/task/test/examples.rs b/tasks/test_api/src/task/test/examples.rs index 7f8d7c256..597f5de02 100644 --- a/tasks/test_api/src/task/test/examples.rs +++ b/tasks/test_api/src/task/test/examples.rs @@ -79,8 +79,10 @@ impl Example { pub fn require(self) -> anyhow::Result<()> { match self { Self::RustBench => { + // Skip self-update on Windows + // https://github.com/rust-lang/rustup/issues/3709 let status = Command::new("rustup") - .args(["install", "nightly"]) + .args(["install", "nightly", "--no-self-update"]) .status()?; assert!(status.success(), "{status}"); Ok(())