File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ registry-auth = true
4
4
5
5
[registries ]
6
6
powershell = { index = " sparse+https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/Cargo/index/" }
7
- cratesio = { index = " sparse+https://index.crates.io/" }
8
7
9
8
[registry ]
10
9
global-credential-providers = [" cargo:token" ]
Original file line number Diff line number Diff line change @@ -175,10 +175,12 @@ if (!$SkipBuild) {
175
175
if (! $UseCFS ) {
176
176
# this will override the config.toml
177
177
Write-Host " Setting CARGO_SOURCE_crates-io_REPLACE_WITH to 'crates-io'"
178
- ${env: CARGO_SOURCE_crates-io_REPLACE_WITH} = ' cratesio'
178
+ ${env: CARGO_SOURCE_crates-io_REPLACE_WITH} = ' CRATESIO'
179
+ $env: CARGO_REGISTRIES_CRATESIO_INDEX = ' sparse+https://index.crates.io/'
179
180
} else {
180
181
Write-Host " Using CFS for cargo source replacement"
181
182
${env: CARGO_SOURCE_crates-io_REPLACE_WITH} = $null
183
+ $env: CARGO_REGISTRIES_CRATESIO_INDEX = $null
182
184
}
183
185
184
186
# make sure dependencies are built first so clippy runs correctly
You can’t perform that action at this time.
0 commit comments