Skip to content

Commit 595350a

Browse files
committed
packs
1 parent b91243c commit 595350a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/CodeQLToolkit.Features/Query/Commands/Targets/InstallQueryPacksCommandTarget.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
using CodeQLToolkit.Shared.CodeQL;
2+
using System;
23
using System.Collections.Generic;
34
using System.Diagnostics;
45
using System.Linq;
@@ -18,13 +19,17 @@ public override void Run()
1819

1920
Log<InstallQueryPacksCommandTarget>.G().LogInformation($"Got {files.Length} packs...");
2021

22+
23+
var installation = CodeQLInstallation.LoadFromConfig(Base);
24+
25+
2126
foreach ( string file in files )
2227
{
2328
Log<InstallQueryPacksCommandTarget>.G().LogInformation($"Installing qlpack {file}...");
2429

2530
using(Process process = new Process())
2631
{
27-
process.StartInfo.FileName = "codeql";
32+
process.StartInfo.FileName = installation.CodeQLToolBinary;
2833
process.StartInfo.UseShellExecute = false;
2934
process.StartInfo.RedirectStandardOutput = false;
3035
process.StartInfo.Arguments = $"pack install {file}";

0 commit comments

Comments
 (0)