File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ if (!$SkipBuild) {
200
200
$accessToken = az account get-access - token -- query accessToken -- resource 499b84ac- 1321 - 427f - aa17- 267ca6975798 - o tsv
201
201
if ($LASTEXITCODE -ne 0 ) {
202
202
Write-Warning " Failed to get access token, use 'az login' first, or use '-useCratesIO' to use crates.io. Proceeding with anonymous access."
203
+ $env: CARGO_REGISITRIES_POWERSHELL_INDEX = " sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/"
203
204
} else {
204
205
$header = " Bearer $accessToken "
205
206
$env: CARGO_REGISTRIES_POWERSHELL_TOKEN = $header
@@ -208,6 +209,7 @@ if (!$SkipBuild) {
208
209
}
209
210
else {
210
211
Write-Warning " Azure CLI not found, proceeding with anonymous access."
212
+ $env: CARGO_REGISITRIES_POWERSHELL_INDEX = " sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/"
211
213
}
212
214
}
213
215
You can’t perform that action at this time.
0 commit comments