Run Lua tracing for Go on Windows in CLI 2.10.4+
A bug preventing us from using Lua tracing for Go on Windows is fixed in CLI 2.10.4+, so we can now resume using Lua tracing for Go on Windows when using these CLI versions.
This commit is contained in:
parent
d05538fa74
commit
ab396da825
3 changed files with 20 additions and 15 deletions
14
lib/codeql.js
generated
14
lib/codeql.js
generated
|
|
@ -82,6 +82,7 @@ const CODEQL_VERSION_CUSTOM_QUERY_HELP = "2.7.1";
|
|||
exports.CODEQL_VERSION_ML_POWERED_QUERIES = "2.7.5";
|
||||
const CODEQL_VERSION_LUA_TRACER_CONFIG = "2.10.0";
|
||||
exports.CODEQL_VERSION_CONFIG_FILES = "2.10.1";
|
||||
const CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED = "2.10.4";
|
||||
/**
|
||||
* This variable controls using the new style of tracing from the CodeQL
|
||||
* CLI. In particular, with versions above this we will use both indirect
|
||||
|
|
@ -502,12 +503,13 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||
}
|
||||
if (await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACER_CONFIG)) {
|
||||
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, logger) &&
|
||||
process.platform === "win32")) {
|
||||
// There's a bug in Lua tracing for Go on Windows in versions earlier than
|
||||
// `CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED`, so don't use Lua tracing
|
||||
// when tracing Go on Windows on these CodeQL versions.
|
||||
(!config.languages.includes(languages_1.Language.go) ||
|
||||
!(0, languages_1.isTracedLanguage)(languages_1.Language.go, logger) ||
|
||||
process.platform !== "win32" ||
|
||||
(await util.codeQlVersionAbove(this, CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED)))) {
|
||||
extraArgs.push("--internal-use-lua-tracing");
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -251,6 +251,7 @@ const CODEQL_VERSION_CUSTOM_QUERY_HELP = "2.7.1";
|
|||
export const CODEQL_VERSION_ML_POWERED_QUERIES = "2.7.5";
|
||||
const CODEQL_VERSION_LUA_TRACER_CONFIG = "2.10.0";
|
||||
export const CODEQL_VERSION_CONFIG_FILES = "2.10.1";
|
||||
const CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED = "2.10.4";
|
||||
|
||||
/**
|
||||
* This variable controls using the new style of tracing from the CodeQL
|
||||
|
|
@ -795,14 +796,16 @@ async function getCodeQLForCmd(
|
|||
) {
|
||||
if (
|
||||
(await featureFlags.getValue(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(Language.go) &&
|
||||
isTracedLanguage(Language.go, logger) &&
|
||||
process.platform === "win32"
|
||||
)
|
||||
// There's a bug in Lua tracing for Go on Windows in versions earlier than
|
||||
// `CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED`, so don't use Lua tracing
|
||||
// when tracing Go on Windows on these CodeQL versions.
|
||||
(!config.languages.includes(Language.go) ||
|
||||
!isTracedLanguage(Language.go, logger) ||
|
||||
process.platform !== "win32" ||
|
||||
(await util.codeQlVersionAbove(
|
||||
this,
|
||||
CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED
|
||||
)))
|
||||
) {
|
||||
extraArgs.push("--internal-use-lua-tracing");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue