mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Remove environment dictionary passing
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Semmle.Autobuild.CSharp
|
||||
attempt = DotNetRule.WithDotNet(this, ensureDotNetAvailable: true, (dotNetPath, env) =>
|
||||
{
|
||||
// No need to check that the extractor has been executed in buildless mode
|
||||
return new StandaloneBuildRule(dotNetPath, env).Analyse(this, false);
|
||||
return new StandaloneBuildRule(dotNetPath).Analyse(this, false);
|
||||
});
|
||||
break;
|
||||
case CSharpBuildStrategy.MSBuild:
|
||||
|
||||
@@ -9,12 +9,10 @@ namespace Semmle.Autobuild.CSharp
|
||||
internal class StandaloneBuildRule : IBuildRule<CSharpAutobuildOptions>
|
||||
{
|
||||
private readonly string? dotNetPath;
|
||||
private readonly IDictionary<string, string>? env;
|
||||
|
||||
internal StandaloneBuildRule(string? dotNetPath, IDictionary<string, string>? env)
|
||||
internal StandaloneBuildRule(string? dotNetPath)
|
||||
{
|
||||
this.dotNetPath = dotNetPath;
|
||||
this.env = env;
|
||||
}
|
||||
|
||||
public BuildScript Analyse(IAutobuilder<CSharpAutobuildOptions> builder, bool auto)
|
||||
@@ -27,7 +25,7 @@ namespace Semmle.Autobuild.CSharp
|
||||
}
|
||||
|
||||
var standalone = builder.Actions.PathCombine(builder.CodeQLExtractorLangRoot, "tools", builder.CodeQlPlatform, "Semmle.Extraction.CSharp.Standalone");
|
||||
var cmd = new CommandBuilder(builder.Actions, environment: this.env);
|
||||
var cmd = new CommandBuilder(builder.Actions);
|
||||
cmd.RunCommand(standalone);
|
||||
|
||||
if (!string.IsNullOrEmpty(this.dotNetPath))
|
||||
|
||||
Reference in New Issue
Block a user