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

build: Bump go to version 1.22.2 #11482

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

brianmcarey
Copy link
Member

@brianmcarey brianmcarey commented Mar 11, 2024

What this PR does

Kubernetes is building with go version 1.22[1]

KubeVirt should align with this.

go v1.22.2 includes a security fix for net/http and some more bug
fixes[2]

Build KubeVirt with go v1.22.2

[1] https://github.com/kubernetes/kubernetes/blob/b3926d137cd2964cd3a04088ded30845910547b1/go.mod#L9
[2] https://github.com/golang/go/issues?q=milestone%3AGo1.22.2+label%3ACherryPickApproved

Fixes #

Why we need it and why it was done in this way

The following tradeoffs were made:

The following alternatives were considered:

Links to places where the discussion took place:

Special notes for your reviewer

Majority of changes come from make generate changing the formatting of descriptions - 8bf4abf

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note

Build KubeVirt with go v1.22.2

@kubevirt-bot kubevirt-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XXL sig/buildsystem Denotes an issue or PR that relates to changes in the build system. labels Mar 11, 2024
@brianmcarey
Copy link
Member Author

/cc @xpivarc @dhiller

Copy link
Contributor

@dhiller dhiller left a comment

Choose a reason for hiding this comment

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

/approve

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 15, 2024
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dhiller
Once this PR has been reviewed and has the lgtm label, please assign vladikr for approval. For more information see the Kubernetes Code Review Process.

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

Needs approval from an approver in each of these files:
  • OWNERS [dhiller]

    Need more approvers for rest parts.

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

@kubevirt-bot kubevirt-bot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 19, 2024
@brianmcarey brianmcarey changed the title build: Bump go to version 1.22.1 build: Bump go to version 1.22.2 Apr 19, 2024
@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 28, 2024
Kubernetes is building with go version 1.22[1]

KubeVirt should align with this.

go v1.22.2 includes a security fix for net/http and some more bug
fixes[2]

Build KubeVirt with go v1.22.2

[1] https://github.com/kubernetes/kubernetes/blob/b3926d137cd2964cd3a04088ded30845910547b1/go.mod#L9
[2] https://github.com/golang/go/issues?q=milestone%3AGo1.22.2+label%3ACherryPickApproved

Signed-off-by: Brian Carey <bcarey@redhat.com>
rule_go v0.46.0 has support for go v1.22[1]

[1] https://github.com/bazelbuild/rules_go/releases/tag/v0.46.0

Signed-off-by: Brian Carey <bcarey@redhat.com>
`make generate` fails with a panic with the current version

Signed-off-by: Brian Carey <bcarey@redhat.com>
Signed-off-by: Brian Carey <bcarey@redhat.com>
@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 29, 2024
Copy link
Member

@EdDev EdDev left a comment

Choose a reason for hiding this comment

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

Thank you!

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 30, 2024
@brianmcarey
Copy link
Member Author

/cc @acardace @xpivarc

@kubevirt-bot kubevirt-bot requested a review from acardace May 3, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/buildsystem Denotes an issue or PR that relates to changes in the build system. size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants