Skip to content

Commit

Permalink
Merge pull request #19 from advanced-security/jsinglet/repo-library-i…
Browse files Browse the repository at this point in the history
…ssue

enable debugging
  • Loading branch information
jsinglet authored Mar 5, 2024
2 parents 0cc5523 + 7d16481 commit 6f4697d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/CodeQLToolkit.Shared/CodeQL/CodeQLInstallation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using LibGit2Sharp;
using System.IO.Compression;
using System.Diagnostics;
using System;



Expand Down Expand Up @@ -284,6 +285,17 @@ private void CustomBundleInstall()
// next, we run the bundling tool.
// typical command line:
// codeql_bundle -b .\scratch\codeql-bundle-win64.tar.gz -o scratch\out -w .\tests\workspace\ --help
var bundleArgs = $"--log DEBUG -b {customBundleSource} -o {CustomBundleOutputDirectory} -w {workingDirectory} {packs}";

if (QuickBundle)
{
Log<CodeQLInstallation>.G().LogInformation($"Note: Quick Bundles enabled and pre-compilation will be disabled...");
bundleArgs = $"--log DEBUG -nc -b {customBundleSource} -o {CustomBundleOutputDirectory} -w {workingDirectory} {packs}";
}

Log<CodeQLInstallation>.G().LogInformation($"Executing Bundle Tool with Working Directory: `{workingDirectory}`");
Log<CodeQLInstallation>.G().LogInformation($"Executing Bundle Tool with Arguments: `{bundleArgs}`");

using (Process process = new Process())
{
process.StartInfo.FileName = ToolUtil.GetTool("codeql_bundle");
Expand All @@ -294,11 +306,11 @@ private void CustomBundleInstall()
if (QuickBundle)
{
Log<CodeQLInstallation>.G().LogInformation($"Note: Quick Bundles enabled and pre-compilation will be disabled...");
process.StartInfo.Arguments = $"-nc -b {customBundleSource} -o {CustomBundleOutputDirectory} -w {workingDirectory} {packs}";
process.StartInfo.Arguments = bundleArgs;
}
else
{
process.StartInfo.Arguments = $"-b {customBundleSource} -o {CustomBundleOutputDirectory} -w {workingDirectory} {packs}";
process.StartInfo.Arguments = bundleArgs;
}

process.Start();
Expand Down

0 comments on commit 6f4697d

Please sign in to comment.