Skip to content

Commit cd2a887

Browse files
committed
Dont break build
1 parent 3d2a9d0 commit cd2a887

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ if ($null -ne $packageType) {
229229
## Test if tree-sitter is installed
230230
if ($null -eq (Get-Command tree-sitter -ErrorAction Ignore)) {
231231
Write-Verbose -Verbose "tree-sitter not found, installing..."
232+
${env:CARGO_SOURCE_crates-io_REPLACE_WITH} = 'CRATESIO'
233+
$env:CARGO_REGISTRIES_CRATESIO_INDEX = 'sparse+https://index.crates.io/'
232234
cargo install tree-sitter-cli --config .cargo/config.toml
233235
if ($LASTEXITCODE -ne 0) {
234236
throw "Failed to install tree-sitter-cli"

0 commit comments

Comments
 (0)