Skip to content

Commit

Permalink
azure: Uninstall previous rustc from builders if any
Browse files Browse the repository at this point in the history
Looks like Azure has updated images recently to install Rust by default,
but that can interfere with our own compiler (for example Cargo's test
suite we think) so be sure to uninstall it before proceeding.
  • Loading branch information
alexcrichton committed Jun 5, 2019
1 parent 0b88e5a commit fb3bd58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .azure-pipelines/steps/run.yml
Expand Up @@ -102,6 +102,10 @@ steps:

- bash: |
set -e
# Remove any preexisting rustup installation since it can interfere
# with the cargotest step and its auto-detection of things like Clippy in
# the environment
rustup self uninstall -y || true
if [ "$IMAGE" = "" ]; then
src/ci/run.sh
else
Expand Down

0 comments on commit fb3bd58

Please sign in to comment.