File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/CodeQLToolkit.Features/Query/Commands/Targets Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- using System ;
1
+ using CodeQLToolkit . Shared . CodeQL ;
2
+ using System ;
2
3
using System . Collections . Generic ;
3
4
using System . Diagnostics ;
4
5
using System . Linq ;
@@ -18,13 +19,17 @@ public override void Run()
18
19
19
20
Log < InstallQueryPacksCommandTarget > . G ( ) . LogInformation ( $ "Got { files . Length } packs...") ;
20
21
22
+
23
+ var installation = CodeQLInstallation . LoadFromConfig ( Base ) ;
24
+
25
+
21
26
foreach ( string file in files )
22
27
{
23
28
Log < InstallQueryPacksCommandTarget > . G ( ) . LogInformation ( $ "Installing qlpack { file } ...") ;
24
29
25
30
using ( Process process = new Process ( ) )
26
31
{
27
- process . StartInfo . FileName = "codeql" ;
32
+ process . StartInfo . FileName = installation . CodeQLToolBinary ;
28
33
process . StartInfo . UseShellExecute = false ;
29
34
process . StartInfo . RedirectStandardOutput = false ;
30
35
process . StartInfo . Arguments = $ "pack install { file } ";
You can’t perform that action at this time.
0 commit comments