Skip to content

Commit

Permalink
[v15] Use Go 1.22.x as the module version (#50879)
Browse files Browse the repository at this point in the history
* Use Go 1.22.x as the module version

* Update .golangci.yml Go version to 1.22

* Remove golangci-lint exemptions related to Go 1.22
  • Loading branch information
codingllama authored Jan 9, 2025
1 parent 5d793c4 commit 747562d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
11 changes: 1 addition & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ issues:
- linters: [testifylint]
text: "suite-thelper: suite helper method must start with"
path: 'integrations/.+'
# Go 1.22 related warnings.
# These are OK because our toolchain is 1.22 or newer.
- linters: [govet]
text: "stdversion: cmp.Or requires go1.22 or later"
- linters: [govet]
text: "stdversion: rand.New requires go1.22 or later"
- linters: [govet]
text: "stdversion: rand.NewPCG requires go1.22 or later"

exclude-use-default: true
max-same-issues: 0
max-issues-per-linter: 0
Expand Down Expand Up @@ -157,6 +148,6 @@ linters-settings:
- suite-thelper

run:
go: '1.21'
go: '1.22'
build-tags: []
timeout: 15m
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/gravitational/teleport

go 1.21

toolchain go1.22.10
go 1.22.10

require (
cloud.google.com/go/cloudsqlconn v1.9.0
Expand Down
4 changes: 1 addition & 3 deletions integrations/event-handler/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/gravitational/teleport/integrations/event-handler

go 1.21

toolchain go1.22.10
go 1.22.10

require (
github.com/alecthomas/kong v0.9.0
Expand Down
4 changes: 1 addition & 3 deletions integrations/terraform/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/gravitational/teleport/integrations/terraform

go 1.21

toolchain go1.22.10
go 1.22.10

require (
github.com/gogo/protobuf v1.3.2
Expand Down

0 comments on commit 747562d

Please sign in to comment.