File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
eng/pipelines/templates/steps Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1111 $toolchain = '${{ parameters.Toolchain }}'
1212 if ($toolchain -eq 'msrv') {
1313 Write-Host "Reading MSRV from azure_core"
14- $toolchain = cargo metadata --manifest-path ./sdk/core/azure_core/Cargo.toml --format-version 1 | convertfrom-json | select -expand packages | where { $_.name -eq 'azure_core' } | select -expand rust_version
14+ $toolchain = cargo read-manifest --manifest-path ./sdk/core/azure_core/Cargo.toml | ConvertFrom-Json | Select-Object -ExpandProperty rust_version
1515 }
1616
1717 Write-Host "Setting Toolchain variable to $toolchain"
@@ -24,10 +24,10 @@ steps:
2424 $attempts++
2525 Write-Host "> rustup toolchain install --no-self-update $toolchain"
2626 rustup toolchain install --no-self-update $toolchain
27-
27+
2828 if ($?) { exit 0 }
2929
30- if ($attempts -lt $maxAttempts) {
30+ if ($attempts -lt $maxAttempts) {
3131 Write-Host "Failed to install $toolchain, attempt $attempts, retrying..."
3232 } else {
3333 Write-Host "Failed to install $toolchain after $attempts attempts."
You can’t perform that action at this time.
0 commit comments