Disable Lua tracing for Go on Windows

This is currently broken in CLI versions 2.10.3 and earlier.
This commit is contained in:
Henry Mercer 2022-08-23 19:19:32 +01:00
parent c18ed56977
commit ab6508ab87
3 changed files with 19 additions and 3 deletions

8
lib/codeql.js generated
View file

@ -501,7 +501,13 @@ async function getCodeQLForCmd(cmd, checkVersion) {
extraArgs.push(`--trace-process-level=${processLevel || 3}`);
}
if (await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACER_CONFIG)) {
if (await featureFlags.getValue(feature_flags_1.FeatureFlag.LuaTracerConfigEnabled)) {
if ((await featureFlags.getValue(feature_flags_1.FeatureFlag.LuaTracerConfigEnabled)) &&
// There's a bug in Lua tracing for Go on Windows in versions 2.10.3 and earlier,
// so don't use Lua tracing when tracing Go on Windows.
// Once we've released a fix, we should add a version gate based on the fixed version.
!(config.languages.includes(languages_1.Language.go) &&
(0, languages_1.isTracedLanguage)(languages_1.Language.go) &&
process.platform === "win32")) {
extraArgs.push("--internal-use-lua-tracing");
}
else {