We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b04bf4a commit 0292085Copy full SHA for 0292085
build.ps1
@@ -25,6 +25,7 @@ param(
25
26
$env:RUSTC_LOG=$null
27
$env:RUSTFLAGS='-Dwarnings'
28
+$usingADO = ($null -ne $env:TF_BUILD)
29
30
trap {
31
Write-Error "An error occurred: $($_ | Out-String)"
@@ -184,7 +185,7 @@ if ($null -ne $packageType) {
184
185
Remove-Item temp:/rustup-init.exe -ErrorAction Ignore
186
}
187
- else {
188
+ elseif (!$usingADO) {
189
Write-Verbose -Verbose "Rust found, updating..."
190
& $rustup update
191
@@ -500,8 +501,6 @@ if (!$Clippy -and !$SkipBuild) {
500
501
502
if ($Test) {
503
$failed = $false
-
504
- $usingADO = ($null -ne $env:TF_BUILD)
505
$repository = 'PSGallery'
506
507
if ($usingADO) {
0 commit comments