File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,18 @@ if ($null -ne $packageType) {
236
236
& $rustup default stable
237
237
}
238
238
239
+ if ($Clippy -and $null -eq (Get-Command cargo- clippy - ErrorAction Ignore)) {
240
+ Write-Verbose - Verbose " clippy not found, installing..."
241
+ if ($UseCFS ) {
242
+ cargo install clippy -- config .cargo/ config.toml
243
+ } else {
244
+ cargo install clippy
245
+ }
246
+ if ($LASTEXITCODE -ne 0 ) {
247
+ throw " Failed to install clippy"
248
+ }
249
+ }
250
+
239
251
# # Test if Node is installed
240
252
# # Skipping upgrade as users may have a specific version they want to use
241
253
if (! (Get-Command ' node' - ErrorAction Ignore)) {
@@ -323,18 +335,6 @@ if (!$SkipBuild) {
323
335
& $rustup target add -- toolchain $channel $architecture
324
336
}
325
337
326
- if ($Clippy -and $null -eq (Get-Command cargo- clippy - ErrorAction Ignore)) {
327
- Write-Verbose - Verbose " clippy not found, installing..."
328
- if ($UseCFS ) {
329
- cargo install clippy -- config .cargo/ config.toml
330
- } else {
331
- rustup component add clippy
332
- }
333
- if ($LASTEXITCODE -ne 0 ) {
334
- throw " Failed to install clippy"
335
- }
336
- }
337
-
338
338
if (Test-Path $target ) {
339
339
Remove-Item $target - Recurse - ErrorAction Ignore
340
340
}
You can’t perform that action at this time.
0 commit comments