Skip to content

Commit 784ed93

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
change casing of powershell registry
1 parent cedd268 commit 784ed93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.cargo/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
registry-auth = true
44

55
[registries]
6-
powershell = { index = "sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/" }
6+
POWERSHELL = { index = "sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/" }
77

88
[registry]
99
global-credential-providers = ["cargo:token"]
@@ -17,4 +17,4 @@ rustflags = ["-Ccontrol-flow-guard", "-Ctarget-feature=+crt-static", "-Clink-arg
1717

1818
# The following is only needed for release builds
1919
[source.crates-io]
20-
replace-with = "powershell"
20+
replace-with = "POWERSHELL"

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,13 @@ if (!$SkipBuild) {
192192
} else {
193193
$header = "Bearer $accessToken"
194194
$env:CARGO_REGISTRIES_POWERSHELL_TOKEN = $header
195+
$env:CARGO_REGISTRIES_POWERSHELL_CREDENTIAL_PROVIDER = 'cargo:token'
195196
}
196197
}
197198
}
198199

199200
# make sure dependencies are built first so clippy runs correctly
200201
$windows_projects = @("pal", "registry", "reboot_pending", "wmi-adapter")
201-
202202
$macOS_projects = @("resources/brew")
203203
$linux_projects = @("resources/apt")
204204

0 commit comments

Comments
 (0)