This commit is contained in:
John Sudol
2023-03-06 22:05:27 +00:00
committed by GitHub
parent 6cdd031970
commit ec0e6c72eb

View File

@@ -69,11 +69,12 @@ namespace GitHub.Runner.Worker.Expressions
//Feature flag to fetch a new version of hashFiles script
string hashFilesScript = string.Empty;
var isGlobHashFilesEnabled = executionContext.Global.Variables.GetBoolean("DistributedTask.UseGlobHashFiles") ?? false;
if(isGlobHashFilesEnabled){
if (isGlobHashFilesEnabled)
{
hashFilesScript = Path.Combine(binDir, "hashFilesV2");
}
hashFilesScript = Path.Combine(binDir, "hashFiles");
var hashResult = string.Empty;
var p = new ProcessInvoker(new HashFilesTrace(context.Trace));
p.ErrorDataReceived += ((_, data) =>