Try forcing rustup to use right channel on Pipelines.
@@ -191,8 +191,9 @@ jobs:
fetchDepth: 5
- script: |
set -e
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain beta --default-host beta-x86_64-apple-darwin
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain beta
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
+ rustup default beta
displayName: 'Install Rust'
- script: rustc --version
displayName: 'print rust version'
@@ -211,8 +212,9 @@ jobs:
fetchDepth: 5
- script: |
set -e
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain beta --default-host beta-x86_64-apple-darwin
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain beta
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
+ rustup default beta
displayName: 'Install Rust'
- script: rustc --version
displayName: 'print rust version'
@@ -229,8 +231,9 @@ jobs:
fetchDepth: 5
- script: |
set -e
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly --default-host nightly-x86_64-apple-darwin
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
+ rustup default nightly
displayName: 'Install Rust'
- script: rustc --version
displayName: 'print rust version'
@@ -251,8 +254,9 @@ jobs:
fetchDepth: 5
- script: |
set -e
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly --default-host x86_64-apple-darwin
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
+ rustup default nightly
displayName: 'Install Rust'
- script: rustc --version
displayName: 'print rust version'
