File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 3232 sysdig-lsp-linux-arm64 = pkgsCross . aarch64-multiplatform . pkgsStatic . sysdig-lsp ;
3333 sysdig-lsp-darwin-amd64 = pkgsCross . x86_64-darwin . sysdig-lsp ;
3434 sysdig-lsp-darwin-arm64 = pkgsCross . aarch64-darwin . sysdig-lsp ;
35+ sysdig-lsp-windows-amd64 = pkgsCross . mingwW64 . sysdig-lsp ;
3536 } ;
3637
3738 devShells . default =
Original file line number Diff line number Diff line change 11#![ allow( dead_code) ] // FIXME: to be removed later, when this is used
22
3- use std:: {
4- os:: unix:: fs:: PermissionsExt ,
5- path:: { Path , PathBuf } ,
6- } ;
7-
83use regex:: Regex ;
94use semver:: Version ;
5+ #[ cfg( unix) ]
6+ use std:: os:: unix:: fs:: PermissionsExt ;
7+ use std:: path:: { Path , PathBuf } ;
108use thiserror:: Error ;
119use tokio:: process:: Command ;
1210
@@ -169,7 +167,7 @@ impl ScannerBinaryManager {
169167
170168 #[ cfg( windows) ]
171169 {
172- if let Some ( ext) = self . binary_path ( ) . extension ( ) {
170+ if let Some ( ext) = binary_path. extension ( ) {
173171 matches ! ( ext. to_str( ) , Some ( "exe" ) | Some ( "bat" ) | Some ( "cmd" ) )
174172 } else {
175173 false
You can’t perform that action at this time.
0 commit comments