CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Build with Go 1.18 #6605
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
Build with Go 1.18 #6605
Conversation
Skipping CI for Draft Pull Request. |
Build succeeded.
|
I wonder if you have met the error in #6586 |
Yeah. I wanted to know what we really need and how does that work with Go 1.16. |
b8b616d
to
c3ff7d9
Compare
@thaJeztah I don't fully understand the motivation of #5441. After removing the empty-mod hack, seems |
It's possible that go 1.17 improved some things (or that dependencies were updated) at the time, without it, some dependencies were resolved, causing other dependencies to be updated (or introduced) |
Build succeeded.
|
Build succeeded.
|
Hmm, so, do we care newly-added outdated dependencies in go.sum? I still don't quite understand the side-effect of them, if there is. |
I don't think the extra ones in It's a bit infuriating though that Go keeps on introducing breaking changes in modules, and not consider them "breaking" because "tooling is out of scope for the Go 1.x stability guarantee" ... sigh |
Good. Then I'm going to remove the empty-mod directory here and keep this PR till Go 1.18's official release. |
Meantime Go 1.18 has been released: https://go.dev/dl/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Yey! I've just rebased the PR. |
No GitHub Actions... I need to dig in. |
|
I just manually queued them, but we'll see if they show up here..eventually |
@estesp Sorry. I actually made the PR smaller, wondering whether my fix broke GitHub Actions or not. Let's wait GitHub's recovery first. |
Build succeeded.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@AkihiroSuda Could we get this to 1.6 branch? |
Any specific reason? Usually we don't upgrade Go for backport branches (until reaching EOL) |
The current release branches do not build with go1.18 (#6586) , meaning for example that we can't update buildkit to 1.18 . I don't care if the containerd CI starts using 1.18 or not but it should at least build with the latest stable Go. |
Yes the first commit can be backported |
@tonistiigi I'm curious though; would |
Agreed that we should have 1.6 building with Go 1.18 in CI. The 1.6 branch is young and will likely outlive Go 1.17. |
As mentioned in containerd/containerd#6605, containerd 1.6 does not build with go 1.18. Rollback buildkite agents to go 1.17 for now. PiperOrigin-RevId: 441847492
These versions are compatible with Go 1.18. There are a lot of OSS bugs about this issue. Notable discussions: - golang/go#51285 - containerd/containerd#6586 This was fixed upstream in the main branch in containerd/containerd#6605. The fix was back-ported to v1.5 and v1.6 in containerd/containerd#6716 and containerd/containerd#6717 respectively. These backports are available in the following versions: ```shell /tmp/gopathJJGZf/containerd$ git tag --contains 765df66099eec88d0365eaa1e9a933877a058f0b v1.6.2 v1.6.3 v1.6.4 v1.6.5 v1.6.6 v1.6.7 v1.6.8 /tmp/gopathJJGZf/containerd$ git tag --contains 86bec213720b54bf9ea2813e2c2a577271af58d3 v1.5.11 v1.5.12 v1.5.13 ``` So use the smallest versions out of them. PiperOrigin-RevId: 480965567
The first commit switches from Go 1.17 to Go 1.18. The second commit revendor dependencies with Go 1.17's module pruning.