tests: remove go version restrictions (#3730)

This commit is contained in:
Ludovic Fernandez 2023-03-27 01:37:47 +02:00 committed by GitHub
parent fb7d328aec
commit ca0052c7d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 13 deletions

View File

@ -770,8 +770,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
WithLoadForGoAnalysis().
WithPresets(linter.PresetUnused).
WithURL("https://github.com/opennota/check").
Deprecated("The owner seems to have abandoned the linter.", "v1.49.0", "unused").
WithNoopFallback(m.cfg),
Deprecated("The owner seems to have abandoned the linter.", "v1.49.0", "unused"),
linter.NewConfig(golinters.NewStylecheck(stylecheckCfg)).
WithSince("v1.20.0").

View File

@ -164,7 +164,6 @@ func (b *RunnerBuilder) Runner() *Runner {
}
arguments := []string{
"--go=1.17", // TODO(ldez): we force to use an old version of Go for the CI and the tests.
"--internal-cmd-test",
}

View File

@ -23,7 +23,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
env: []string(nil),
command: "run",
args: []string{
"--go=1.17",
"--internal-cmd-test",
"--allow-parallel-runners",
},
@ -36,7 +35,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
env: []string(nil),
command: "example",
args: []string{
"--go=1.17",
"--internal-cmd-test",
"--allow-parallel-runners",
},
@ -49,7 +47,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
env: []string(nil),
command: "run",
args: []string{
"--go=1.17",
"--internal-cmd-test",
"--allow-parallel-runners",
"--no-config",
@ -63,7 +60,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
env: []string(nil),
command: "run",
args: []string{
"--go=1.17",
"--internal-cmd-test",
"--allow-parallel-runners",
"-c",
@ -78,7 +74,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
env: []string(nil),
command: "run",
args: []string{
"--go=1.17",
"--internal-cmd-test",
"--allow-parallel-runners",
"-c",
@ -96,7 +91,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
env: []string{"FOO=BAR", "FII=BIR"},
command: "run",
args: []string{
"--go=1.17",
"--internal-cmd-test",
"--allow-parallel-runners",
},
@ -109,7 +103,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
env: []string(nil),
command: "run",
args: []string{
"--go=1.17",
"--internal-cmd-test",
},
},
@ -121,7 +114,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
env: []string(nil),
command: "run",
args: []string{
"--go=1.17",
"--internal-cmd-test",
"--allow-parallel-runners",
"-Efoo",
@ -137,7 +129,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
env: []string(nil),
command: "run",
args: []string{
"--go=1.17",
"--internal-cmd-test",
"--allow-parallel-runners",
filepath.FromSlash("testdata/all.go"),
@ -156,7 +147,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
env: []string(nil),
command: "run",
args: []string{
"--go=1.17",
"--internal-cmd-test",
"--allow-parallel-runners",
"-c",