8000 Set go version to 1.17 to match CI by smaftoul · Pull Request #10581 · helm/helm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Set go version to 1.17 to match CI #10581

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 1 commit into from
Mar 11, 2022
Merged

Conversation

smaftoul
Copy link
Contributor
@smaftoul smaftoul commented Jan 19, 2022

Closes #10580

What this PR does / why we need it:

Bump go version to 1.17 to match CI. It's needed because building with 1.16 is broken and because the CI uses 1.17.

@helm-bot helm-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 19, 2022
@smaftoul
Copy link
Contributor Author

CI Has this error:

ERRO Running error: context loading failed: no go files to analyze

The PR doesn't contain any modification to go files, I guess this is normal (but probably should not fail ?)

@bacongobbler
Copy link
Member

likely fixed once #10575 is merged - golint is deprecated.

@bacongobbler
Copy link
Member

For reference, the version number listed in go.mod dictates the minimum version of Go you can use to compile the project. It does not have to match the same version in CI - in fact it can be several versions behind. However in the case described in #10580, it sounds like Helm cannot be compiled against Go 1.16 due to an issue with a transitive dependency, so bumping go.mod to a version that does compile seems fine to me.

Copy link
Member
@bacongobbler bacongobbler left a comment

Choose a reason for hiding this comment

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

LGTM once we merge #10575 and this PR is rebased to ensure everything still works

@smaftoul
Copy link
Contributor Author

I think, the CI should use the minimum version of Go you can use to compile the project, so this situation doesn't happen.

@bacongobbler
Copy link
Member
bacongobbler commented Jan 19, 2022

I think, the CI should use the minimum version of Go you can use to compile the project, so this situation doesn't happen.

I agree that we should run the test suite against all supported versions of Go (and we'd appreciate a PR to do so next time!). But I don't think we should release new versions of Helm compiled against the oldest supported version. Newer versions of Go contain performance improvements and bug fixes, many of which will benefit Helm users.

For example, Go 1.17 brought improvements to the compiler, resulting in an average performance improvement of 5% and a reduction in binary size of ~2% (source).

That is why we compile Helm against the latest stable version of Go.

@bacongobbler
Copy link
Member

Can you please rebase? Thanks

Signed-off-by: Samuel Maftoul <samuel.maftoul@gmail.com>
@smaftoul
Copy link
Contributor Author

@bacongobbler Done !

@bacongobbler bacongobbler mentioned this pull request Mar 11, 2022
@bacongobbler bacongobbler merged commit 8a0bfae into helm:main Mar 11, 2022
@bacongobbler bacongobbler added this to the 3.9.0 milestone Mar 11, 2022
@tchupp tchupp mentioned this pull request Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build fails with go1.16 but works with 1.17, Go.mod points to go1.16
3 participants
0