File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ func InstallGolangciLint(tb testing.TB) string {
372
372
373
373
// TODO(ldez) remove when we will run go1.23 on the CI.
374
374
func forceDisableUnsupportedLinters (args []string ) []string {
375
- if ! isGoVersion ("1.21 " ) {
375
+ if ! isGoLessThan ("1.22 " ) {
376
376
return args
377
377
}
378
378
@@ -414,7 +414,7 @@ func forceDisableUnsupportedLinters(args []string) []string {
414
414
}
415
415
416
416
// TODO(ldez) remove when we will run go1.23 on the CI.
417
- func isGoVersion (tag string ) bool {
417
+ func isGoLessThan (tag string ) bool {
418
418
vRuntime , err := hcversion .NewVersion (strings .TrimPrefix (runtime .Version (), "go" ))
419
419
if err != nil {
420
420
return false
@@ -425,5 +425,7 @@ func isGoVersion(tag string) bool {
425
425
return false
426
426
}
427
427
428
- return vRuntime .GreaterThanOrEqual (vTag )
428
+ println (vRuntime .LessThanOrEqual (vTag ))
429
+
430
+ return vRuntime .LessThan (vTag )
429
431
}
You can’t perform that action at this time.
0 commit comments