Skip to content

Commit

Permalink
Go: Update newer-go-version-needed test
Browse files Browse the repository at this point in the history
- Use a version that is accepted by Go tooling
- Run is no longer successful with Go 1.21
  • Loading branch information
mbg committed Sep 13, 2023
1 parent c4ca054 commit 406e2b8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
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()
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
go 999.0
go 1.999.0

module test

0 comments on commit 406e2b8

Please sign in to comment.