Skip to content

Commit

Permalink
Set CODEQL_EXTRACTOR_GO_BUILD_TRACING in init
Browse files Browse the repository at this point in the history
  • Loading branch information
angelapwen committed Nov 7, 2022
1 parent e11baf4 commit 21816d5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 29 deletions.
3 changes: 3 additions & 0 deletions lib/init-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/init-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 0 additions & 23 deletions lib/languages.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/languages.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/init-action.ts
Expand Up @@ -218,6 +218,10 @@ async function run() {
logger
);

if (config.languages.includes(Language.go)) {
core.exportVariable("CODEQL_EXTRACTOR_GO_BUILD_TRACING", "on");
}

if (
config.languages.includes(Language.python) &&
getRequiredInput("setup-python-dependencies") === "true"
Expand Down
4 changes: 0 additions & 4 deletions src/languages.ts
Expand Up @@ -47,10 +47,6 @@ export function isTracedLanguage(language: Language, logger: Logger): boolean {
);
}

if (language === Language.go) {
core.exportVariable("CODEQL_EXTRACTOR_GO_BUILD_TRACING", "on");
}

return [
Language.cpp,
Language.csharp,
Expand Down

0 comments on commit 21816d5

Please sign in to comment.