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 9011d12
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 31 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
Original file line number Diff line number Diff line change
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
6 changes: 0 additions & 6 deletions src/languages.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as core from "@actions/core";

import { Logger } from "./logging";

// All the languages supported by CodeQL
Expand Down Expand Up @@ -47,10 +45,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 9011d12

Please sign in to comment.