Skip to content

Commit ca0052c

Browse files
authored
tests: remove go version restrictions (#3730)
1 parent fb7d328 commit ca0052c

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

pkg/lint/lintersdb/manager.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
770770
WithLoadForGoAnalysis().
771771
WithPresets(linter.PresetUnused).
772772
WithURL("https://github.com/opennota/check").
773-
Deprecated("The owner seems to have abandoned the linter.", "v1.49.0", "unused").
774-
WithNoopFallback(m.cfg),
773+
Deprecated("The owner seems to have abandoned the linter.", "v1.49.0", "unused"),
775774

776775
linter.NewConfig(golinters.NewStylecheck(stylecheckCfg)).
777776
WithSince("v1.20.0").

test/testshared/runner.go

-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ func (b *RunnerBuilder) Runner() *Runner {
164164
}
165165

166166
arguments := []string{
167-
"--go=1.17", // TODO(ldez): we force to use an old version of Go for the CI and the tests.
168167
"--internal-cmd-test",
169168
}
170169

test/testshared/runner_test.go

-10
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
2323
env: []string(nil),
2424
command: "run",
2525
args: []string{
26-
"--go=1.17",
2726
"--internal-cmd-test",
2827
"--allow-parallel-runners",
2928
},
@@ -36,7 +35,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
3635
env: []string(nil),
3736
command: "example",
3837
args: []string{
39-
"--go=1.17",
4038
"--internal-cmd-test",
4139
"--allow-parallel-runners",
4240
},
@@ -49,7 +47,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
4947
env: []string(nil),
5048
command: "run",
5149
args: []string{
52-
"--go=1.17",
5350
"--internal-cmd-test",
5451
"--allow-parallel-runners",
5552
"--no-config",
@@ -63,7 +60,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
6360
env: []string(nil),
6461
command: "run",
6562
args: []string{
66-
"--go=1.17",
6763
"--internal-cmd-test",
6864
"--allow-parallel-runners",
6965
"-c",
@@ -78,7 +74,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
7874
env: []string(nil),
7975
command: "run",
8076
args: []string{
81-
"--go=1.17",
8277
"--internal-cmd-test",
8378
"--allow-parallel-runners",
8479
"-c",
@@ -96,7 +91,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
9691
env: []string{"FOO=BAR", "FII=BIR"},
9792
command: "run",
9893
args: []string{
99-
"--go=1.17",
10094
"--internal-cmd-test",
10195
"--allow-parallel-runners",
10296
},
@@ -109,7 +103,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
109103
env: []string(nil),
110104
command: "run",
111105
args: []string{
112-
"--go=1.17",
113106
"--internal-cmd-test",
114107
},
115108
},
@@ -121,7 +114,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
121114
env: []string(nil),
122115
command: "run",
123116
args: []string{
124-
"--go=1.17",
125117
"--internal-cmd-test",
126118
"--allow-parallel-runners",
127119
"-Efoo",
@@ -137,7 +129,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
137129
env: []string(nil),
138130
command: "run",
139131
args: []string{
140-
"--go=1.17",
141132
"--internal-cmd-test",
142133
"--allow-parallel-runners",
143134
filepath.FromSlash("testdata/all.go"),
@@ -156,7 +147,6 @@ func TestRunnerBuilder_Runner(t *testing.T) {
156147
env: []string(nil),
157148
command: "run",
158149
args: []string{
159-
"--go=1.17",
160150
"--internal-cmd-test",
161151
"--allow-parallel-runners",
162152
"-c",

0 commit comments

Comments
 (0)