Skip to content

Commit ae96111

Browse files
committed
Revert "Simplify test."
This reverts commit 2310bd9.
1 parent 448da89 commit ae96111

File tree

2 files changed

+34
-6
lines changed

2 files changed

+34
-6
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"location": {
3+
"file": "go.mod"
4+
},
5+
"markdownMessage": "As of Go 1.21, toolchain versions [must use the 1.N.P syntax](https://go.dev/doc/toolchain#version).\n\n`1.22` in `go.mod` does not match this syntax and there is no additional `toolchain` directive, which may cause some `go` commands to fail.",
6+
"severity": "warning",
7+
"source": {
8+
"extractorName": "go",
9+
"id": "go/autobuilder/invalid-go-toolchain-version",
10+
"name": "Invalid Go toolchain version"
11+
},
12+
"visibility": {
13+
"cliSummaryTable": true,
14+
"statusPage": true,
15+
"telemetry": true
16+
}
17+
}
18+
{
19+
"markdownMessage": "A single `go.mod` file was found.\n\n`go.mod`",
20+
"severity": "note",
21+
"source": {
22+
"extractorName": "go",
23+
"id": "go/autobuilder/single-root-go-mod-found",
24+
"name": "A single `go.mod` file was found in the root"
25+
},
26+
"visibility": {
27+
"cliSummaryTable": false,
28+
"statusPage": false,
29+
"telemetry": true
30+
}
31+
}
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import os
2-
3-
4-
def test(check_build_environment, go):
5-
# the check for resolve build-environment runs after the test and will pick up this environment variable
6-
os.environ["GOTOOLCHAIN"] = "go1.21.0"
1+
def test(codeql, go, check_build_environment):
2+
check_build_environment.env = {"GOTOOLCHAIN": "go1.21.0"}
3+
codeql.database.create(source_root="src")

0 commit comments

Comments
 (0)