From 5efa00f978be126b09b6ab53c8c82fa4f5a4ed18 Mon Sep 17 00:00:00 2001 From: hemanthmanga <166606741+hemanthmanga@users.noreply.github.com> Date: Sat, 5 Apr 2025 03:20:45 +0530 Subject: [PATCH] [Windows 19 & Windows 22] Fix Rust issue. (#11949) --- images/windows/scripts/build/Install-Rust.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/windows/scripts/build/Install-Rust.ps1 b/images/windows/scripts/build/Install-Rust.ps1 index 7b16842b..cf35a741 100644 --- a/images/windows/scripts/build/Install-Rust.ps1 +++ b/images/windows/scripts/build/Install-Rust.ps1 @@ -40,7 +40,7 @@ if ($LASTEXITCODE -ne 0) { throw "Rust component installation failed with exit code $LASTEXITCODE" } if (-not (Test-IsWin25)) { - cargo install bindgen-cli cbindgen cargo-audit cargo-outdated + cargo install --locked bindgen-cli cbindgen cargo-audit cargo-outdated if ($LASTEXITCODE -ne 0) { throw "Rust tools installation failed with exit code $LASTEXITCODE" }