Skip to content

Commit 0b13da3

Browse files
committed
Go: Update newer-go-version-needed test
- Use a version that is accepted by Go tooling - Run is no longer successful with Go 1.21
1 parent 01a1d81 commit 0b13da3

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

go/ql/integration-tests/all-platforms/go/diagnostics/newer-go-version-needed/diagnostics.expected

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,3 @@
1212
"telemetry": true
1313
}
1414
}
15-
{
16-
"markdownMessage": "The detected version of Go is lower than the version specified in `go.mod`. [Install a newer version](https://github.com/actions/setup-go#basic).",
17-
"severity": "error",
18-
"source": {
19-
"extractorName": "go",
20-
"id": "go/autobuilder/newer-go-version-needed",
21-
"name": "Newer Go version needed"
22-
},
23-
"visibility": {
24-
"cliSummaryTable": true,
25-
"statusPage": true,
26-
"telemetry": true
27-
}
28-
}

go/ql/integration-tests/all-platforms/go/diagnostics/newer-go-version-needed/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
from diagnostics_test_utils import *
55

66
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test"
7-
run_codeql_database_create([], lang="go", source="work", db=None)
7+
run_codeql_database_create([], lang="go", source="work", db=None, runFunction=runUnsuccessfully)
88

99
check_diagnostics()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
go 999.0
1+
go 1.999.0
22

33
module test

0 commit comments

Comments
 (0)