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

go.mod: go 1.22 #10110

Merged
merged 3 commits into from Apr 30, 2024
Merged

go.mod: go 1.22 #10110

merged 3 commits into from Apr 30, 2024

Conversation

AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Apr 23, 2024

go.mod Outdated Show resolved Hide resolved
@AkihiroSuda

This comment was marked as resolved.

@AkihiroSuda AkihiroSuda force-pushed the go-mod-1.22 branch 2 times, most recently from be245e6 to 846595d Compare April 24, 2024 13:07
@thaJeztah
Copy link
Member

😞 this is becoming more and more disruptive for k8s to enforce "only latest" go versions supported.

@AkihiroSuda
Copy link
Member Author

😞 this is becoming more and more disruptive for k8s to enforce "only latest" go versions supported.

cc @dims Do you think this is negotiable on Kubernetes side? Do we need a KEP?

@thaJeztah
Copy link
Member

For v2, it's probably ok to move towards go1.22; mostly looking that we've had this situation before, and I know that for containerd itself, we try to follow Go's recommendations to support "latest" and 'latest -1" at least to allow consumers of the module to transition. (We tried keeping compatibility with versions older than that, but that has become more problematic / difficult to maintain, also with go.mod now having changed the go version from a "recommendation", to enforced version)

@dims
Copy link
Member

dims commented Apr 24, 2024

@thaJeztah @AkihiroSuda please chime in on kubernetes/kubernetes#123744 and if necessary golang/go#65573

TL;DR we are trying to work with the golang team to make it better, but will have to wait for golang 1.23

@AkihiroSuda

This comment was marked as resolved.

Copy link
Member

@akhilerm akhilerm left a comment

Choose a reason for hiding this comment

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

nit: one minor change on the build docs. https://github.com/containerd/containerd/blame/main/BUILDING.md#L28. Need to update it to go1.22

runc is incompatible with Go 1.22 on glibc-based distros
(opencontainers/runc issue 4233)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Depended by k8s.io/cri-api >= v0.30.0 (Kubernetes v1.30, PR 10019)
https://github.com/kubernetes/cri-api/blob/v0.30.0/go.mod#L5

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda
Copy link
Member Author

nit: one minor change on the build docs. https://github.com/containerd/containerd/blame/main/BUILDING.md#L28. Need to update it to go1.22

Thanks, updated

@@ -1,6 +1,6 @@
module github.com/containerd/containerd/v2

go 1.21
go 1.22.0
Copy link
Member Author

Choose a reason for hiding this comment

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

(Not sure whether this should be 1.22.2 or just 1.22.0)

Copy link
Member

Choose a reason for hiding this comment

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

If we upgrade to 1.22.2, it will force anyone using containerd module to be upgraded to 1.22.2. I am good with keeping at 1.22.0

Copy link
Member

@akhilerm akhilerm left a comment

Choose a reason for hiding this comment

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

LGTM

@AkihiroSuda AkihiroSuda added this pull request to the merge queue Apr 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 30, 2024
@AkihiroSuda AkihiroSuda added this pull request to the merge queue Apr 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 30, 2024
@AkihiroSuda AkihiroSuda added this pull request to the merge queue Apr 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 30, 2024
@AkihiroSuda AkihiroSuda added this pull request to the merge queue Apr 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 30, 2024
@AkihiroSuda AkihiroSuda added this pull request to the merge queue Apr 30, 2024
Merged via the queue into containerd:main with commit 53160fb Apr 30, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants