Skip to content

Commit fb3bd58

Browse files
committed
azure: Uninstall previous rustc from builders if any
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.
1 parent 0b88e5a commit fb3bd58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.azure-pipelines/steps/run.yml

+4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ steps:
102102

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

0 commit comments

Comments
 (0)