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 to k8s.io v1.24.0-rc.1 #666

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

sbueringer
Copy link
Member

Signed-off-by: Stefan Büringer [email protected]

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 28, 2022
@k8s-ci-robot k8s-ci-robot requested a review from droot April 28, 2022 15:21
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 28, 2022
@k8s-ci-robot k8s-ci-robot requested a review from mengqiy April 28, 2022 15:21
@sbueringer
Copy link
Member Author

/assign @alvaroaleman

@sbueringer
Copy link
Member Author

/test pull-controller-tools-test-master

@sbueringer sbueringer force-pushed the pr-bump-v1.24-rc.01 branch 3 times, most recently from 545c232 to 5b698c0 Compare April 28, 2022 16:07
@@ -23,7 +23,7 @@ import (
// Version returns the version of the main module
func Version() string {
info, ok := debug.ReadBuildInfo()
if !ok {
if !ok || (info != nil && info.Main.Version == "") {
Copy link
Member Author

Choose a reason for hiding this comment

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

A unit test failed without this change

It looks like previously ok was false. Now we get ok==true + an info object with an empty Version

Copy link
Member

@alvaroaleman alvaroaleman Apr 28, 2022

Choose a reason for hiding this comment

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

okay, interesting. That is IMHO a go bug as it breaks compatibility.

Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't it be

Suggested change
if !ok || (info != nil && info.Main.Version == "") {
if !ok || info == nil || info.Main.Version == "" {

Copy link
Member Author

@sbueringer sbueringer Apr 28, 2022

Choose a reason for hiding this comment

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

Fixed

Maybe the func still behaves the same way but the tests are now built with module support ?!

Copy link
Member

Choose a reason for hiding this comment

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

see #662 for explanation for this issue

Signed-off-by: Stefan Büringer [email protected]
@sbueringer sbueringer force-pushed the pr-bump-v1.24-rc.01 branch from 5b698c0 to 633a769 Compare April 28, 2022 16:15
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, 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 Apr 28, 2022
@alvaroaleman
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 28, 2022
@k8s-ci-robot k8s-ci-robot merged commit ca1750d into kubernetes-sigs:master Apr 28, 2022
@sbueringer sbueringer deleted the pr-bump-v1.24-rc.01 branch April 28, 2022 16:44
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/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.

4 participants