Skip to content

Commit 3cf3549

Browse files
committed
Go: Update identify-environment JSON format
The spec changed after this was implemented and merged
1 parent 7f2e587 commit 3cf3549

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go/extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Build behavior:
4444
to 'false' disables the GOPATH set-up, CODEQL_EXTRACTOR_GO_BUILD_COMMAND (or alternatively
4545
LGTM_INDEX_BUILD_COMMAND), can be set to a newline-separated list of commands to run in order to
4646
install dependencies, and LGTM_INDEX_IMPORT_PATH can be used to override the package import path,
47-
which is otherwise inferred from the SEMMLE_REPO_URL or GITHUB_REPOSITORY environment variables.
47+
which is otherwise inferred from the SEMMLE_REPO_URL or GITHUB_REPOSITORY environment variables.
4848
4949
In resource-constrained environments, the environment variable CODEQL_EXTRACTOR_GO_MAX_GOROUTINES
5050
(or its legacy alias SEMMLE_MAX_GOROUTINES) can be used to limit the number of parallel goroutines
@@ -931,9 +931,9 @@ func getVersionToInstall(v versionInfo) (msg, version string) {
931931
func outputEnvironmentJson(version string) {
932932
var content string
933933
if version == "" {
934-
content = `{ "include": [] }`
934+
content = `{ "configuration": { "go": {} } }`
935935
} else {
936-
content = `{ "include": [ { "go": { "version": "` + version + `" } } ] }`
936+
content = `{ "configuration": { "go": { "version": "` + version + `" } } }`
937937
}
938938
_, err := fmt.Fprint(os.Stdout, content)
939939

0 commit comments

Comments
 (0)