From 4f32a6865405318ec39c6bca04f45ee9690dff3c Mon Sep 17 00:00:00 2001 From: Mateus Oliveira Date: Wed, 20 Dec 2023 11:49:29 -0300 Subject: [PATCH 1/2] fix: Go version fallback following docs Signed-off-by: Mateus Oliveira --- pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 7941f428f4f5..260b45fa6926 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -67,5 +67,5 @@ func DetectGoVersion() string { return v } - return "1.17" + return "1.18" } From 6215a7aada3f01dba8d2b48d783f878ba48f2fa3 Mon Sep 17 00:00:00 2001 From: Mateus Oliveira Date: Wed, 20 Dec 2023 12:19:58 -0300 Subject: [PATCH 2/2] fixup! fix: Go version fallback following docs Signed-off-by: Mateus Oliveira --- .golangci.reference.yml | 2 +- pkg/config/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.reference.yml b/.golangci.reference.yml index 929fca5e155f..f92ae2da521f 100644 --- a/.golangci.reference.yml +++ b/.golangci.reference.yml @@ -72,7 +72,7 @@ run: # Define the Go version limit. # Mainly related to generics support since go1.18. - # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.18 + # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17 go: '1.19' diff --git a/pkg/config/config.go b/pkg/config/config.go index 260b45fa6926..7941f428f4f5 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -67,5 +67,5 @@ func DetectGoVersion() string { return v } - return "1.18" + return "1.17" }