Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Bump Go to 1.21.5 #9900

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Conversation

chrischdi
Copy link
Member

What this PR does / why we need it:

Bumps go to 1.21.5.

Upstream kubernetes did bump at kubernetes/kubernetes#122201

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Part of #9578

/area dependency

@k8s-ci-robot k8s-ci-robot added area/dependency Issues or PRs related to dependency changes cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 19, 2023
@chrischdi chrischdi changed the title 🌱 Bump Go to 1.21.5 🌱 [WIP] Bump Go to 1.21.5 Dec 19, 2023
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 19, 2023
@chrischdi
Copy link
Member Author

/retitle 🌱 Bump Go to 1.21.5

@k8s-ci-robot k8s-ci-robot changed the title 🌱 [WIP] Bump Go to 1.21.5 🌱 Bump Go to 1.21.5 Dec 19, 2023
@chrischdi chrischdi mentioned this pull request Dec 19, 2023
14 tasks
@@ -1,6 +1,6 @@
module sigs.k8s.io/cluster-api

go 1.20
go 1.21
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT about also setting toolchain like CR? k/k didn't do it.

After reading https://go.dev/doc/toolchain I'm not sure if we should or not

(https://github.com/kubernetes-sigs/controller-runtime/blob/52c391f17373684a96fa3b552d8a77b9da8ae5b5/go.mod#L5)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The go and toolchain lines can be thought of as specifying the version requirements for the module's dependency on the Go toolchain itself, just as the require lines in go. mod specify the version requirements for dependencies on other modules.

Based on this it sounds reasonable to set it

Copy link
Member Author

@chrischdi chrischdi Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting toolchain to go1.21.5 would force folks who import this or newer versions of capi to use go >= 1.21.5.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we already do it via go 1.21.

Copy link
Member

@sbueringer sbueringer Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talked to Christian about it. We don't see a strong reason why we should set toolchain. We already enforce usage of Go 1.21 via go 1.21 and we probably don't want to enforce a specific minimum go patch version if we don't have a strong reason to do so.

Thus I would merge as is. If someone comes up with a reason why we should set it, let us know and we follow-up

@sbueringer
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 19, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: b6d6691ecb04228ded594a2e01cf3111da7030af

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 19, 2023
@k8s-ci-robot k8s-ci-robot merged commit 235d965 into kubernetes-sigs:main Dec 19, 2023
28 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.7 milestone Dec 19, 2023
@chrischdi chrischdi deleted the pr-bump-go-1-21 branch December 19, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/dependency Issues or PRs related to dependency changes cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants