Skip to content

build: update to go1.22.0 #449

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

Merged
merged 6 commits into from
Sep 30, 2024
Merged

Conversation

akhilerm
Copy link
Member

@akhilerm akhilerm commented Sep 5, 2024

  • update minimum golang version to go1.22.0
  • update golangci-lint to v1.61.0

NOTES TO REVIEWERS:
Reviewing commit by commit will help understand why certain linters are removed with references to the linter repositories. Also linters that were reporting non trivial fixes / sacrificing readability has been disabled for now.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 5, 2024
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 5, 2024
@akhilerm akhilerm changed the title dep: update to go1.22 build: update to go1.22.0 Sep 5, 2024
@akhilerm akhilerm marked this pull request as draft September 5, 2024 20:22
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 5, 2024
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

you will need to update the job in test-infra to use at least go1.22

@akhilerm
Copy link
Member Author

akhilerm commented Sep 6, 2024

/retest

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

update golangci version in the gh actions

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 19, 2024
@akhilerm akhilerm marked this pull request as ready for review September 21, 2024 04:58
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 21, 2024
@akhilerm akhilerm requested a review from cpanato September 21, 2024 04:58
@akhilerm
Copy link
Member Author

/test pull-publishing-bot-image

@akhilerm
Copy link
Member Author

Fix for pull-publishing-bot-image job is in #450

@akhilerm
Copy link
Member Author

@cpanato PTAL

@akhilerm
Copy link
Member Author

/cc @cpanato @saschagrunert Can you take a look ?

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

we want to be always updated with the patch versions but avoid the need to open prs all the time to update those things

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

another request

Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
Ref: go-critic/go-critic#1376
Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
Ref: go-critic/go-critic#1281
Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
goerr113 and perfsprint linters are removed since the fixes reduces the readability

Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
@cpanato cpanato added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Sep 30, 2024
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

thanks

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: akhilerm, cpanato

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 Sep 30, 2024
@k8s-ci-robot k8s-ci-robot merged commit 5540445 into kubernetes:master Sep 30, 2024
7 checks passed
@akhilerm akhilerm deleted the update-go1.22 branch October 1, 2024 05:45
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. 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/M Denotes a PR that changes 30-99 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants