Skip to content

Commit d56c5ad

Browse files
committed
Bump to Go 1.22
The oldest supported branch of k/k is 1.31, which uses Go 1.22. Signed-off-by: Stephen Kitt <[email protected]>
1 parent 0af2bda commit d56c5ad

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
build:
55
strategy:
66
matrix:
7-
go-version: [1.20.x, 1.21.x]
7+
go-version: [1.22.x, 1.25.x]
88
platform: [windows-latest]
99
runs-on: ${{ matrix.platform }}
1010
steps:
@@ -24,7 +24,7 @@ jobs:
2424
test:
2525
strategy:
2626
matrix:
27-
go-version: [1.20.x, 1.21.x]
27+
go-version: [1.22.x, 1.25.x]
2828
platform: [ubuntu-latest, macos-latest]
2929
runs-on: ${{ matrix.platform }}
3030
steps:
@@ -40,7 +40,7 @@ jobs:
4040
verify-go-directive:
4141
strategy:
4242
matrix:
43-
go-version: [1.20.x, 1.21.x]
43+
go-version: [1.22.x, 1.25.x]
4444
platform: [ubuntu-latest, macos-latest]
4545
runs-on: ${{ matrix.platform }}
4646
steps:
@@ -72,7 +72,7 @@ jobs:
7272
- name: Install Go
7373
uses: actions/setup-go@v3
7474
with:
75-
go-version: 1.21.x
75+
go-version: 1.22.x
7676
- name: Add GOBIN to PATH
7777
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
7878
- name: Install dependencies

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ vet:
3939
update-fmt:
4040
gofmt -s -w .
4141

42-
# We set the maximum version of the go directive as 1.20 here
42+
# We set the maximum version of the go directive as 1.22 here
4343
# because the oldest go directive that exists on our supported
44-
# release branches in k/k is 1.20.
44+
# release branches in k/k is 1.22.
4545
.PHONY: verify-go-directive
4646
verify-go-directive:
47-
./hack/verify-go-directive.sh -g 1.20
47+
./hack/verify-go-directive.sh -g 1.22

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module k8s.io/utils
22

3-
go 1.18
3+
go 1.22
44

55
require (
66
github.com/davecgh/go-spew v1.1.1

0 commit comments

Comments
 (0)