mirror of
https://github.com/github/codeql-action.git
synced 2026-01-05 06:00:32 +08:00
Trace Go when Go extraction reconciliation is enabled
This commit is contained in:
@@ -777,8 +777,12 @@ async function getCodeQLForCmd(
|
||||
const extraArgs = config.languages.map(
|
||||
(language) => `--language=${language}`
|
||||
);
|
||||
const isGoExtractionReconciliationEnabled =
|
||||
await util.isGoExtractionReconciliationEnabled(featureFlags);
|
||||
if (
|
||||
config.languages.filter((l) => isTracedLanguage(l, logger)).length > 0
|
||||
config.languages.filter((l) =>
|
||||
isTracedLanguage(l, isGoExtractionReconciliationEnabled, logger)
|
||||
).length > 0
|
||||
) {
|
||||
extraArgs.push("--begin-tracing");
|
||||
extraArgs.push(...(await getTrapCachingExtractorConfigArgs(config)));
|
||||
@@ -800,7 +804,11 @@ async function getCodeQLForCmd(
|
||||
// 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) &&
|
||||
isTracedLanguage(
|
||||
Language.go,
|
||||
isGoExtractionReconciliationEnabled,
|
||||
logger
|
||||
) &&
|
||||
process.platform === "win32"
|
||||
)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user