Trace Go when Go extraction reconciliation is enabled
This commit is contained in:
parent
fe1bd9ac76
commit
cf5d465980
39 changed files with 272 additions and 110 deletions
5
lib/codeql.js
generated
5
lib/codeql.js
generated
|
|
@ -488,7 +488,8 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||
},
|
||||
async databaseInitCluster(config, sourceRoot, processName, processLevel, featureFlags, logger) {
|
||||
const extraArgs = config.languages.map((language) => `--language=${language}`);
|
||||
if (config.languages.filter((l) => (0, languages_1.isTracedLanguage)(l, logger)).length > 0) {
|
||||
const isGoExtractionReconciliationEnabled = await util.isGoExtractionReconciliationEnabled(featureFlags);
|
||||
if (config.languages.filter((l) => (0, languages_1.isTracedLanguage)(l, isGoExtractionReconciliationEnabled, logger)).length > 0) {
|
||||
extraArgs.push("--begin-tracing");
|
||||
extraArgs.push(...(await (0, trap_caching_1.getTrapCachingExtractorConfigArgs)(config)));
|
||||
if (processName !== undefined) {
|
||||
|
|
@ -506,7 +507,7 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||
// 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) &&
|
||||
(0, languages_1.isTracedLanguage)(languages_1.Language.go, isGoExtractionReconciliationEnabled, logger) &&
|
||||
process.platform === "win32")) {
|
||||
extraArgs.push("--internal-use-lua-tracing");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue