Skip to content

chore: Update Golang to v1.24#30677

Merged
mattfarina merged 7 commits intohelm:mainfrom
dongjiang1989:update-golang-version
Apr 18, 2025
Merged

chore: Update Golang to v1.24#30677
mattfarina merged 7 commits intohelm:mainfrom
dongjiang1989:update-golang-version

Conversation

@dongjiang1989
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This is needed to update to the latest k8s packages(v1.33.beta.0) as they require Go 1.24

Special notes for your reviewer:

If applicable:

  • this PR contains user facing changes (the docs needed label should be applied if so)
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Signed-off-by: dongjiang <dongjiang1989@126.com>
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 17, 2025
Copy link
Copy Markdown
Collaborator

@mattfarina mattfarina left a comment

Choose a reason for hiding this comment

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

.github/env files are not part of the GitHub Actions features. So, the change in this PR didn't actually work.

In this case go-version is an empty string. This is leading to the CI log message:

Warning: go-version input was not specified. The action will try to use pre-installed version.

Can you please create a PR where the go version is working.

Signed-off-by: dongjiang <dongjiang1989@126.com>
@pull-request-size pull-request-size bot 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 Mar 18, 2025
@dongjiang1989
Copy link
Copy Markdown
Contributor Author

.github/env files are not part of the GitHub Actions features. So, the change in this PR didn't actually work.

In this case go-version is an empty string. This is leading to the CI log message:

Warning: go-version input was not specified. The action will try to use pre-installed version.

Can you please create a PR where the go version is working.

Thanks @mattfarina
Fixed.
PTAL recheck it.

Signed-off-by: dongjiang <dongjiang1989@126.com>
Signed-off-by: dongjiang <dongjiang1989@126.com>
Signed-off-by: dongjiang <dongjiang1989@126.com>
Copy link
Copy Markdown
Contributor

@TerryHowe TerryHowe 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
Copy Markdown
Member

@scottrigby scottrigby left a comment

Choose a reason for hiding this comment

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

This all works now. Tested both with CI and locally. Nice job.

Matt's change request here has been fixed #30677 (review)

I'm asking for one small style change request. Revert the one change where you removed extra lines. Let's keep extra lines consistent in that file.

Once that's done, this should be good to go 👍

Comment on lines +22 to +23
- name: Import environment variables from file
run: cat ".github/env" >> "$GITHUB_ENV"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this makes sense. GitHub recommends exporting env vars to GITHUB_ENV here: https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runsstepsenv. We also are not exporting anything sensitive—noting because these are printed to console, which is fine for all of this.

@scottrigby scottrigby added refactor Needs v3 backport Label PRs for v4/main, which are still applicable to v3 so need a separate backport PR labels Apr 5, 2025
Signed-off-by: dongjiang <dongjiang2010@gmail.com>
Signed-off-by: dongjiang <dongjiang2010@gmail.com>
@dongjiang1989
Copy link
Copy Markdown
Contributor Author

This all works now. Tested both with CI and locally. Nice job.

Matt's change request here has been fixed #30677 (review)

I'm asking for one small style change request. Revert the one change where you removed extra lines. Let's keep extra lines consistent in that file.

Once that's done, this should be good to go 👍

Thanks @scottrigby
Fixed and rebase done

Copy link
Copy Markdown
Member

@scottrigby scottrigby left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thanks @dongjiang1989 for your persistence.

Note for other reviewers: never mind my nit about line breaks around steps. Our GH Actions workflows are already inconsistent from file to file and sometimes within the same file. If we care to format these consistently we can do that in a follow up.

@scottrigby scottrigby added the Has One Approval This PR has one approval. It still needs a second approval to be merged. label Apr 18, 2025
Copy link
Copy Markdown
Member

@robertsirc robertsirc left a comment

Choose a reason for hiding this comment

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

LGTM

@robertsirc robertsirc added approved Indicates a PR has been approved by the required number of approvers and removed Has One Approval This PR has one approval. It still needs a second approval to be merged. labels Apr 18, 2025
@mattfarina mattfarina merged commit 07b0dca into helm:main Apr 18, 2025
5 checks passed
@dongjiang1989 dongjiang1989 deleted the update-golang-version branch April 18, 2025 23:15
@scottrigby scottrigby added v3 port complete For completed v2->v3 ports and removed approved Indicates a PR has been approved by the required number of approvers Needs v3 backport Label PRs for v4/main, which are still applicable to v3 so need a separate backport PR labels Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor size/M Denotes a PR that changes 30-99 lines, ignoring generated files. v3 port complete For completed v2->v3 ports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants