Skip to content

Commit 289fdce

Browse files
authored
Workaround a bug causing Windows CI failures. (#119)
This works around [this bug], which manifests as ``` error: could not remove 'setup' file: 'C:\Users\VssAdministrator\.cargo\bin/rustup-init.exe' info: caused by: Access is denied. (os error 5) ``` as suggested by [this comment]. [this bug]: https://github.com/microsoft/azure-pipelines-image-generation/issues/1224 [this comment]: #118 (comment)
1 parent bdfbb54 commit 289fdce

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.azure-pipelines.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ jobs:
4343
# wasi-libc. Rust's llvm-tools include llvm-nm, and Rust is installed on Azure's Windows
4444
# images, so we can use that to make llvm-nm available without too much overhead.
4545
set -euo pipefail
46-
rustup update stable
46+
# Add --no-self-update as a workaround for
47+
# https://github.com/microsoft/azure-pipelines-image-generation/issues/1224
48+
rustup update stable --no-self-update
4749
rustup default stable
4850
rustup component add llvm-tools-preview
4951
echo "##vso[task.setvariable variable=WASM_NM;]$(rustc --print sysroot|sed 's|C:|/c|'|sed 's|\\|/|g')/lib/rustlib/x86_64-pc-windows-msvc/bin/llvm-nm.exe"

0 commit comments

Comments
 (0)