-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 2310bd9.
- Loading branch information
Showing
2 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...ion-tests/all-platforms/go/resolve-build-environment/newer-go-needed/diagnostics.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"location": { | ||
"file": "go.mod" | ||
}, | ||
"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.", | ||
"severity": "warning", | ||
"source": { | ||
"extractorName": "go", | ||
"id": "go/autobuilder/invalid-go-toolchain-version", | ||
"name": "Invalid Go toolchain version" | ||
}, | ||
"visibility": { | ||
"cliSummaryTable": true, | ||
"statusPage": true, | ||
"telemetry": true | ||
} | ||
} | ||
{ | ||
"markdownMessage": "A single `go.mod` file was found.\n\n`go.mod`", | ||
"severity": "note", | ||
"source": { | ||
"extractorName": "go", | ||
"id": "go/autobuilder/single-root-go-mod-found", | ||
"name": "A single `go.mod` file was found in the root" | ||
}, | ||
"visibility": { | ||
"cliSummaryTable": false, | ||
"statusPage": false, | ||
"telemetry": true | ||
} | ||
} |
9 changes: 3 additions & 6 deletions
9
go/ql/integration-tests/all-platforms/go/resolve-build-environment/newer-go-needed/test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
import os | ||
|
||
|
||
def test(check_build_environment, go): | ||
# the check for resolve build-environment runs after the test and will pick up this environment variable | ||
os.environ["GOTOOLCHAIN"] = "go1.21.0" | ||
def test(codeql, go, check_build_environment): | ||
check_build_environment.env = {"GOTOOLCHAIN": "go1.21.0"} | ||
codeql.database.create(source_root="src") |