From e44428a3becd0d55e17a97b3e6f1474bafab4d78 Mon Sep 17 00:00:00 2001 From: Robin Kuzmin <9372582+kuzminrobin@users.noreply.github.com> Date: Fri, 3 Feb 2023 02:17:21 -0800 Subject: [PATCH] Fixing "'cargo-fmt.exe' is not installed". (#1122) * Fixing "'cargo-fmt.exe' is not installed". --- src/Qir/Runtime/prerequisites.ps1 | 2 ++ src/Simulation/qdk_sim_rs/prerequisites.ps1 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Qir/Runtime/prerequisites.ps1 b/src/Qir/Runtime/prerequisites.ps1 index 91717c09..2d20f8d6 100644 --- a/src/Qir/Runtime/prerequisites.ps1 +++ b/src/Qir/Runtime/prerequisites.ps1 @@ -78,7 +78,9 @@ if ($Env:ENABLE_QIRRUNTIME -ne "false") { # rustfmt and clippy is available. rustup install nightly rustup toolchain install nightly + rustup toolchain install nightly-2022-08-01 rustup component add rustfmt clippy llvm-tools-preview rustup component add rustfmt clippy llvm-tools-preview --toolchain nightly + rustup component add rustfmt clippy llvm-tools-preview --toolchain nightly-2022-08-01 } diff --git a/src/Simulation/qdk_sim_rs/prerequisites.ps1 b/src/Simulation/qdk_sim_rs/prerequisites.ps1 index c8a597ed..806c2840 100644 --- a/src/Simulation/qdk_sim_rs/prerequisites.ps1 +++ b/src/Simulation/qdk_sim_rs/prerequisites.ps1 @@ -22,5 +22,7 @@ if (-not (Get-Command rustup -ErrorAction SilentlyContinue)) { # rustfmt and clippy is available. rustup install nightly rustup toolchain install nightly +rustup toolchain install nightly-2022-08-01 rustup component add rustfmt clippy llvm-tools-preview rustup component add rustfmt clippy llvm-tools-preview --toolchain nightly +rustup component add rustfmt clippy llvm-tools-preview --toolchain nightly-2022-08-01