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

Update to Go 1.22 #2086

Merged
merged 4 commits into from
Sep 5, 2024
Merged

Update to Go 1.22 #2086

merged 4 commits into from
Sep 5, 2024

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Sep 4, 2024

… and take advantage of the new features where it’s easy to do.

@openshift-ci openshift-ci bot added the approved label Sep 4, 2024
@mtrmac
Copy link
Collaborator Author

mtrmac commented Sep 4, 2024

Cc: @Luap99

go.mod Outdated
@@ -1,7 +1,7 @@
go 1.21
go 1.22
Copy link
Member

Choose a reason for hiding this comment

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

For consistency should we set this to 1.22.0 so that the toolchain line is removed like in the other projects?

I was thinking about updating the warning comment here to always say we never want the toolchain in go.mod

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Both done.

Thanks!

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
... for the trivial cases where the loop body does not reference
the iteration variable at all.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Leave anything requiring math/rand.Read alone.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

openshift-ci bot commented Sep 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, mtrmac

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

@openshift-merge-bot openshift-merge-bot bot merged commit 8f0998d into containers:main Sep 5, 2024
18 checks passed
@mtrmac mtrmac deleted the go1.22 branch September 5, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants