Skip to content

Commit b506441

Browse files
authored
Update go version to 1.21 (#1621)
1 parent 61b843e commit b506441

File tree

9 files changed

+132
-9
lines changed

9 files changed

+132
-9
lines changed

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ linters-settings:
101101
allow-leading-space: false
102102
require-specific: true
103103
staticcheck:
104-
go: "1.20"
104+
go: "1.21"
105105
stylecheck:
106-
go: "1.20"
106+
go: "1.21"
107107
gosec:
108108
excludes:
109109
- G307 # Deferring unsafe method "Close" on type "\*os.File"
@@ -126,7 +126,7 @@ linters-settings:
126126
- whyNoLint
127127
- wrapperFunc
128128
unused:
129-
go: "1.20"
129+
go: "1.21"
130130
issues:
131131
max-same-issues: 0
132132
max-issues-per-linter: 0

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RELEASE_DIR := out
6363
OUTPUT_TYPE ?= type=registry
6464

6565
# Go
66-
GO_VERSION ?=1.20.12
66+
GO_VERSION ?=1.21.7
6767
GO_CONTAINER_IMAGE ?= golang:$(GO_VERSION)
6868

6969
# kind

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/cluster-api-provider-ibmcloud
22

3-
go 1.20
3+
go 1.21
44

55
// Keep these modules sync with sigs.k8s.io/cluster-api repository
66
replace (

go.sum

Lines changed: 44 additions & 0 deletions
Large diffs are not rendered by default.

hack/ccm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Go
16-
GO_VERSION ?=1.20.12
16+
GO_VERSION ?=1.21.7
1717
GO_CONTAINER_IMAGE ?= golang:$(GO_VERSION)
1818

1919
REGISTRY=gcr.io/k8s-staging-capi-ibmcloud

hack/ensure-go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ EOF
3131
local go_version
3232
IFS=" " read -ra go_version <<< "$(go version)"
3333
local minimum_go_version
34-
minimum_go_version=go1.20.0
34+
minimum_go_version=go1.21.0
3535
if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
3636
cat <<EOF
3737
Detected go version: ${go_version[*]}.

hack/tools/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/cluster-api-provider-ibmcloud/hack/tools
22

3-
go 1.20
3+
go 1.21
44

55
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.6.1
66

hack/tools/go.sum

Lines changed: 79 additions & 0 deletions
Large diffs are not rendered by default.

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ command = "make -C docs/book build"
44
publish = "docs/book/book"
55

66
[build.environment]
7-
GO_VERSION = "1.20"
7+
GO_VERSION = "1.21"
88

99
# Standard Netlify redirects
1010
[[redirects]]

0 commit comments

Comments
 (0)