File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 15
15
[switch ]$GetPackageVersion ,
16
16
[switch ]$SkipLinkCheck ,
17
17
[switch ]$UseX64MakeAppx ,
18
- [switch ]$UseCratesIO ,
18
+ [switch ]$UseCFS ,
19
19
[switch ]$UpdateLockFile ,
20
20
[switch ]$Audit ,
21
21
[switch ]$UseCFSAuth ,
@@ -290,12 +290,7 @@ if (!$SkipBuild) {
290
290
}
291
291
New-Item - ItemType Directory $target - ErrorAction Ignore > $null
292
292
293
- if ($UseCratesIO ) {
294
- # this will override the config.toml
295
- Write-Host " Setting CARGO_SOURCE_crates-io_REPLACE_WITH to 'crates-io'"
296
- ${env: CARGO_SOURCE_crates-io_REPLACE_WITH} = ' CRATESIO'
297
- $env: CARGO_REGISTRIES_CRATESIO_INDEX = ' sparse+https://index.crates.io/'
298
- } else {
293
+ if ($UseCFS -or $UseCFSAuth -or $usingADO ) {
299
294
Write-Host " Using CFS for cargo source replacement"
300
295
${env: CARGO_SOURCE_crates-io_REPLACE_WITH} = $null
301
296
$env: CARGO_REGISTRIES_CRATESIO_INDEX = $null
@@ -321,6 +316,11 @@ if (!$SkipBuild) {
321
316
Write-Warning " Azure CLI not found, proceeding with anonymous access."
322
317
}
323
318
}
319
+ } else {
320
+ # this will override the config.toml
321
+ Write-Host " Setting CARGO_SOURCE_crates-io_REPLACE_WITH to 'crates-io'"
322
+ ${env: CARGO_SOURCE_crates-io_REPLACE_WITH} = ' CRATESIO'
323
+ $env: CARGO_REGISTRIES_CRATESIO_INDEX = ' sparse+https://index.crates.io/'
324
324
}
325
325
326
326
# make sure dependencies are built first so clippy runs correctly
You can’t perform that action at this time.
0 commit comments