Skip to content

Commit

Permalink
Workaround a bug causing Windows CI failures. (#119)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
sunfishcode authored Oct 22, 2019
1 parent bdfbb54 commit 289fdce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ jobs:
# wasi-libc. Rust's llvm-tools include llvm-nm, and Rust is installed on Azure's Windows
# images, so we can use that to make llvm-nm available without too much overhead.
set -euo pipefail
rustup update stable
# Add --no-self-update as a workaround for
# https://github.com/microsoft/azure-pipelines-image-generation/issues/1224
rustup update stable --no-self-update
rustup default stable
rustup component add llvm-tools-preview
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"
Expand Down

0 comments on commit 289fdce

Please sign in to comment.