Skip to content

Commit db68e38

Browse files
authored
Merge pull request #3355 from camilamacedo86/bump-go-120
✨ (API and go/v4): Upgrade go version to 1.20
2 parents 4c98457 + 299cc16 commit db68e38

File tree

23 files changed

+23
-22
lines changed

23 files changed

+23
-22
lines changed

.github/workflows/apidiff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Go
2020
uses: actions/setup-go@v4
2121
with:
22-
go-version: "1.19"
22+
go-version: '~1.20'
2323
- name: Execute go-apidiff
2424
uses: joelanford/[email protected]
2525
with:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Go
1616
uses: actions/setup-go@v4
1717
with:
18-
go-version: 1.19
18+
go-version: '~1.20'
1919
- name: Clone the code
2020
uses: actions/checkout@v3
2121
- name: Run linter

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v4
1919
with:
20-
go-version: '~1.19'
20+
go-version: '~1.20'
2121
- name: Run GoReleaser
2222
uses: goreleaser/goreleaser-action@v4
2323
with:

.github/workflows/testdata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Go
1919
uses: actions/setup-go@v4
2020
with:
21-
go-version: '1.19'
21+
go-version: '~1.20'
2222
- name: Remove pre-installed kustomize
2323
# This step is needed as the following one tries to remove
2424
# kustomize for each test but has no permission to do so

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Go
2323
uses: actions/setup-go@v4
2424
with:
25-
go-version: "1.19"
25+
go-version: '~1.20'
2626
# This step is needed as the following one tries to remove
2727
# kustomize for each test but has no permission to do so
2828
- name: Remove pre-installed kustomize

docs/book/src/component-config-tutorial/testdata/project/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.19 as builder
2+
FROM golang:1.20 as builder
33
ARG TARGETOS
44
ARG TARGETARCH
55

docs/book/src/component-config-tutorial/testdata/project/go.mod

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

3-
go 1.19
3+
go 1.20
44

55
require (
66
k8s.io/apimachinery v0.26.1

go.mod

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

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/gobuffalo/flect v1.0.2

pkg/plugins/golang/go_version_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ var _ = Describe("checkGoVersion", func() {
197197
Entry("for go 1.18.1", "go1.18.1"),
198198
Entry("for go.1.19", "go1.19"),
199199
Entry("for go.1.19.1", "go1.19.1"),
200+
Entry("for go.1.20", "go1.20"),
200201
)
201202

202203
DescribeTable("should return an error for non-supported go versions",

pkg/plugins/golang/v4/scaffolds/internal/templates/dockerfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (f *Dockerfile) SetTemplateDefaults() error {
3939
}
4040

4141
const dockerfileTemplate = `# Build the manager binary
42-
FROM golang:1.19 as builder
42+
FROM golang:1.20 as builder
4343
ARG TARGETOS
4444
ARG TARGETARCH
4545

0 commit comments

Comments
 (0)