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

chore: update to go 1.22 #2330

Merged
merged 2 commits into from
Mar 20, 2024
Merged

chore: update to go 1.22 #2330

merged 2 commits into from
Mar 20, 2024

Conversation

andaaron
Copy link
Contributor

@andaaron andaaron commented Mar 19, 2024

Only go toolchain version is updated.
We compile with go 1.22, but we allow others to compile using language version 1.21 if they wish to. If we also updated the go version in go.mod everyone would be forced to update, as that is enforced as a minimum allowed version.

This comment explains the difference well enough https://news.ycombinator.com/item?id=36455759

It looks like they made some cleanup in the logic allowing buildmode pie on various platforms.

Related to golang/go#31544
See the code at: https://cs.opensource.google/go/go/+/master:src/internal/platform/supported.go;l=222-231;drc=d7fcb5cf80953f1d63246f1ae9defa60c5ce2d76;bpv=1;bpt=0

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.85%. Comparing base (28e9aab) to head (6d0efeb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2330      +/-   ##
==========================================
- Coverage   92.86%   92.85%   -0.01%     
==========================================
  Files         166      167       +1     
  Lines       22022    22025       +3     
==========================================
+ Hits        20450    20452       +2     
- Misses        979      980       +1     
  Partials      593      593              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andaaron andaaron marked this pull request as ready for review March 19, 2024 18:11
@andaaron andaaron self-assigned this Mar 19, 2024
Only go toolchain version is updated.
We compile with go 1.22, but we allow others to compile using language version 1.21 if they wish to.
If we also updated the go version in go.mod everyone would be forced to update, as that is enforced as a minimum allowed version.

This comment explains the difference well enough https://news.ycombinator.com/item?id=36455759

Signed-off-by: Andrei Aaron <[email protected]>
Looks like they made some cleanup in the logic allowing buildmode pie on various platforms.

Related to golang/go#31544
See the code at: https://cs.opensource.google/go/go/+/master:src/internal/platform/supported.go;l=222-231;drc=d7fcb5cf80953f1d63246f1ae9defa60c5ce2d76;bpv=1;bpt=0

Signed-off-by: Andrei Aaron <[email protected]>
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

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

lgtm

@rchincha
Copy link
Contributor

cc:@dfr fyi, some build related changes wrt freebsd

@rchincha rchincha merged commit 375c35c into project-zot:main Mar 20, 2024
34 of 35 checks passed
@rchincha
Copy link
Contributor

We should make our lives a little easier by parameterizing this information so that we change it in only one place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants