Skip to content

Commit 213d89a

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
Change when ADO don't force auth and use CFS anonymously
1 parent 3430828 commit 213d89a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ if (!$SkipBuild) {
237237
Write-Host "Using CFS for cargo source replacement"
238238
${env:CARGO_SOURCE_crates-io_REPLACE_WITH} = $null
239239
$env:CARGO_REGISTRIES_CRATESIO_INDEX = $null
240-
$env:CARGO_REGISTRIES_POWERSHELL_INDEX = "sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell~force-auth/Cargo/index/"
241240

242241
if ($UseCFSAuth) {
243242
if ($null -eq (Get-Command 'az' -ErrorAction Ignore)) {
@@ -253,6 +252,7 @@ if (!$SkipBuild) {
253252
$header = "Bearer $accessToken"
254253
$env:CARGO_REGISTRIES_POWERSHELL_TOKEN = $header
255254
$env:CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER = 'cargo:token'
255+
$env:CARGO_REGISTRIES_POWERSHELL_INDEX = "sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell~force-auth/Cargo/index/"
256256
}
257257
}
258258
else {

0 commit comments

Comments
 (0)