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
This commit is contained in:
Michael B. Gale
2023-09-12 20:20:55 +01:00
parent 01a1d814f4
commit 0b13da35eb
3 changed files with 2 additions and 16 deletions

View File

@@ -12,17 +12,3 @@
"telemetry": true
}
}
{
"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).",
"severity": "error",
"source": {
"extractorName": "go",
"id": "go/autobuilder/newer-go-version-needed",
"name": "Newer Go version needed"
},
"visibility": {
"cliSummaryTable": true,
"statusPage": true,
"telemetry": true
}
}

View File

@@ -4,6 +4,6 @@ from create_database_utils import *
from diagnostics_test_utils import *
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test"
run_codeql_database_create([], lang="go", source="work", db=None)
run_codeql_database_create([], lang="go", source="work", db=None, runFunction=runUnsuccessfully)
check_diagnostics()

View File

@@ -1,3 +1,3 @@
go 999.0
go 1.999.0
module test