Skip to content

Commit 98a1416

Browse files
authored
[all OSs] Pin Rust to 1.89.0 due to a 1.90.0 breaking change (#13044)
1 parent 6e52179 commit 98a1416

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

images/macos/scripts/build/install-rust.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ echo "Installing Rustup..."
1010
brew_smart_install "rustup-init"
1111

1212
echo "Installing Rust language..."
13-
rustup-init -y --no-modify-path --default-toolchain=stable --profile=minimal
13+
# Pin to 1.89.0 until https://github.com/actions/runner-images/issues/13041 && https://github.com/rust-lang/rust/issues/145936 is resolved
14+
rustup-init -y --no-modify-path --default-toolchain=1.89.0 --profile=minimal
1415

1516
echo "Initialize environment variables..."
1617
CARGO_HOME=$HOME/.cargo

images/ubuntu/scripts/build/install-rust.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ source $HELPER_SCRIPTS/os.sh
1111
export RUSTUP_HOME=/etc/skel/.rustup
1212
export CARGO_HOME=/etc/skel/.cargo
1313

14-
curl -fsSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=stable --profile=minimal
14+
# Pin to 1.89.0 until https://github.com/actions/runner-images/issues/13041 && https://github.com/rust-lang/rust/issues/145936 is resolved
15+
curl -fsSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.89.0 --profile=minimal
1516

1617
# Initialize environment variables
1718
source $CARGO_HOME/env

images/windows/scripts/build/Install-Rust.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Test-FileChecksum $rustupPath -ExpectedSHA256Sum $distributorFileHash
1818
#endregion
1919

2020
# Install Rust by running rustup-init.exe (disabling the confirmation prompt with -y)
21-
& $rustupPath -y --default-toolchain=stable --profile=minimal
21+
# Pin to 1.89.0 until https://github.com/actions/runner-images/issues/13041 && https://github.com/rust-lang/rust/issues/145936 is resolved
22+
& $rustupPath -y --default-toolchain=1.89.0 --profile=minimal
2223
if ($LASTEXITCODE -ne 0) {
2324
throw "Rust installation failed with exit code $LASTEXITCODE"
2425
}

0 commit comments

Comments
 (0)