File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,24 @@ if ($null -ne $packageType) {
236236 & $rustup default stable
237237 }
238238
239+ if ($Clippy ) {
240+ Write-Verbose - Verbose " Installing clippy..."
241+ if ($UseCFS ) {
242+ cargo install clippy -- config .cargo/ config.toml
243+ } else {
244+ if ($architecture -ne ' current' ) {
245+ write-verbose - verbose " Installing clippy for $architecture "
246+ & $rustup component add clippy -- target $architecture
247+ } else {
248+ write-verbose - verbose " Installing clippy for current architecture"
249+ & $rustup component add clippy
250+ }
251+ }
252+ if ($LASTEXITCODE -ne 0 ) {
253+ throw " Failed to install clippy"
254+ }
255+ }
256+
239257 # # Test if Node is installed
240258 # # Skipping upgrade as users may have a specific version they want to use
241259 if (! (Get-Command ' node' - ErrorAction Ignore)) {
You can’t perform that action at this time.
0 commit comments