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

dev-lang/go: update Go to 1.20.4 #839

Merged
merged 9 commits into from
May 29, 2023
Merged

dev-lang/go: update Go to 1.20.4 #839

merged 9 commits into from
May 29, 2023

Conversation

dongsupark
Copy link
Member

@dongsupark dongsupark commented May 24, 2023

  1. Add dev-lang/go 1.20.4 and drop the unnecessary 1.18.10.

  2. Update the default Go version from 1.19 to the latest 1.20.

  3. Since Go 1.20 stopped shipping pre-compiled package archives for the standard library in $GOROOT/pkg, it became impossible to install pkg/linux_{amd64,arm64} for every version. To avoid build failure, install the library if the Go slot number is 1.19 or older.

  4. Update dev-lang/go-bootstrap to 1.18.6, by syncing with Gentoo commit 1b3154a4473d. This is necessary because Go >= 1.20 requires go-bootstrap to be at least 1.17.13.

  • Drop unnecessary Flatcar patches from go-bootstrap, and move the ebuild from coreos-overlay to portage-stable.
  1. Go 1.18 is already EOL, so no security update at all. Since upstream docker projects already have Go 1.19, Flatcar should also have that.
  • Note, we still keep setting COREOS_GO_VERSION="go1.19" for containerd, cri-tools, docker, docker-cli, docker-proxy, docker-runc, following the default version of upstream projects.
  • Delete Go 1.12 which does not work with go-bootstrap 1.18.
  1. For amazon-ssm-agent, use Go 1.19 as Go 1.12 does not exist. Update amazon-ssm-agent to 3.2.985.0, because 2.3.1319.0 does not work with Go 1.19.

Fixes flatcar/Flatcar#1035.

Testing done

CI: http://jenkins.infra.kinvolk.io:8080/job/container/job/sdk/825/cldsv/

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

@dongsupark
Copy link
Member Author

/update-sdk

@dongsupark
Copy link
Member Author

Just a moment. I am rerunning the CI on Jenkins http://jenkins.infra.kinvolk.io:8080/job/container/job/sdk/822/cldsv/ just in case.

Add Go 1.20.4 and drop unnecessary versions 1.18.10, 1.12.17.
Update the default Go version from 1.19 to the latest 1.20.

Note, we still keep setting COREOS_GO_VERSION="go1.19" for
containerd, cri-tools, docker, docker-cli, docker-proxy, docker-runc,
following the default version of upstream projects.
Since Go 1.20 stopped shipping pre-compiled package archives for the
standard library in $GOROOT/pkg, it became impossible to install
pkg/linux_{amd64,arm64} for every version. To avoid build failure,
install the library if the Go slot number is 1.19 or older.

Also depend on go-bootstrap 1.17.13 or newer.

See also https://go.dev/doc/go1.20.
Go 1.18 is already EOL, so no security update at all. Since
upstream docker projects already have Go 1.19, Flatcar should also have
that.

See also
https://github.com/moby/moby/blob/5d6db842238e3c4f5f9fb9ad70ea46b35227d084/Dockerfile#L6.
Add Go 1.20 to the SDK, delete the unnecessary 1.18.
Delete 1.12 which does not work with go-bootstrap 1.18.
Update dev-lang/go-bootstrap to 1.18.6, by syncing with Gentoo commit
1b3154a4473deedaf3d1deb978f9a19739ac03af.

This is necessary because Go >= 1.20 requires go-bootstrap to be at
least 1.17.13.

Drop unnecessary Flatcar patches from go-bootstrap, and move the ebuild
from coreos-overlay to portage-stable.
Use Go 1.19 as Go 1.12 does not exist.
Update amazon-ssm-agent to 3.2.985.0, because 2.3.1319.0 does not work
with Go 1.19.
Clean up unnecessary patches.
@dongsupark dongsupark marked this pull request as ready for review May 26, 2023 17:24
@dongsupark dongsupark requested a review from a team May 26, 2023 17:30
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.

[RFE] Update the default Go to 1.20
2 participants