mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-16 06:41:38 +01:00
dev-lang/go: Update to 1.17.1, delete 1.16
Update dev-lang/go to 1.17.1, mainly to address CVE-2021-29923. Delete dev-lang/go 1.16, which is not needed any more.
This commit is contained in:
parent
97b3506e4f
commit
6295868ffa
@ -5,7 +5,7 @@ EAPI=6
|
|||||||
|
|
||||||
GITHUB_URI="github.com/containerd/containerd"
|
GITHUB_URI="github.com/containerd/containerd"
|
||||||
COREOS_GO_PACKAGE="${GITHUB_URI}"
|
COREOS_GO_PACKAGE="${GITHUB_URI}"
|
||||||
COREOS_GO_VERSION="go1.16"
|
COREOS_GO_VERSION="go1.17"
|
||||||
|
|
||||||
if [[ ${PV} == *9999 ]]; then
|
if [[ ${PV} == *9999 ]]; then
|
||||||
EGIT_REPO_URI="https://${GITHUB_URI}.git"
|
EGIT_REPO_URI="https://${GITHUB_URI}.git"
|
||||||
|
|||||||
@ -6,7 +6,7 @@ GIT_COMMIT=311fbfaf7d
|
|||||||
EGO_PN="github.com/docker/cli"
|
EGO_PN="github.com/docker/cli"
|
||||||
|
|
||||||
COREOS_GO_PACKAGE="${EGO_PN}"
|
COREOS_GO_PACKAGE="${EGO_PN}"
|
||||||
COREOS_GO_VERSION="go1.16"
|
COREOS_GO_VERSION="go1.17"
|
||||||
|
|
||||||
inherit bash-completion-r1 golang-vcs-snapshot coreos-go-depend
|
inherit bash-completion-r1 golang-vcs-snapshot coreos-go-depend
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ EAPI=6
|
|||||||
EGO_PN="github.com/docker/libnetwork"
|
EGO_PN="github.com/docker/libnetwork"
|
||||||
|
|
||||||
COREOS_GO_PACKAGE="${EGO_PN}"
|
COREOS_GO_PACKAGE="${EGO_PN}"
|
||||||
COREOS_GO_VERSION="go1.16"
|
COREOS_GO_VERSION="go1.17"
|
||||||
COREOS_GO_GO111MODULE="off"
|
COREOS_GO_GO111MODULE="off"
|
||||||
|
|
||||||
if [[ ${PV} == *9999 ]]; then
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
|||||||
@ -5,7 +5,7 @@ EAPI=6
|
|||||||
|
|
||||||
GITHUB_URI="github.com/opencontainers/runc"
|
GITHUB_URI="github.com/opencontainers/runc"
|
||||||
COREOS_GO_PACKAGE="${GITHUB_URI}"
|
COREOS_GO_PACKAGE="${GITHUB_URI}"
|
||||||
COREOS_GO_VERSION="go1.16"
|
COREOS_GO_VERSION="go1.17"
|
||||||
# the commit of runc that docker uses.
|
# the commit of runc that docker uses.
|
||||||
# see https://github.com/docker/docker-ce/blob/v19.03.15/components/engine/hack/dockerfile/install/runc.installer#L4
|
# see https://github.com/docker/docker-ce/blob/v19.03.15/components/engine/hack/dockerfile/install/runc.installer#L4
|
||||||
COMMIT_ID="61ab78b58f2c0c3fbfc63477f2c020e825b9789d"
|
COMMIT_ID="61ab78b58f2c0c3fbfc63477f2c020e825b9789d"
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
EAPI=7
|
EAPI=7
|
||||||
EGO_PN=github.com/docker/docker
|
EGO_PN=github.com/docker/docker
|
||||||
GIT_COMMIT=4662437124
|
GIT_COMMIT=4662437124
|
||||||
# Flatcar: force building with go1.16 like upstream does
|
# Flatcar: force building with go1.17 like upstream does
|
||||||
COREOS_GO_VERSION="go1.16"
|
COREOS_GO_VERSION="go1.17"
|
||||||
COREOS_GO_GO111MODULE="off"
|
COREOS_GO_GO111MODULE="off"
|
||||||
|
|
||||||
inherit bash-completion-r1 linux-info systemd udev golang-vcs-snapshot
|
inherit bash-completion-r1 linux-info systemd udev golang-vcs-snapshot
|
||||||
# Flatcar: use coreos-go-depend to force building with go1.16
|
# Flatcar: use coreos-go-depend to force building with go1.17
|
||||||
inherit coreos-go-depend
|
inherit coreos-go-depend
|
||||||
|
|
||||||
DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
|
DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
DIST go1.12.17.src.tar.gz 20725913 BLAKE2B 2eef7374195302656268a42409619445dfeb3ede1f9218ae4eab195916876b97f7510cc62585a0bfdd9f86dddf8a74000032a84b29bc9891d84fc69db94f0274 SHA512 069f8f445d9d2268ebb14b2446fab34843d56283c04561636d122fd8b4c1ea0b63640a84437db7a7be71039440ffe170cd3f8025b03b0acf95f2a56fa2febec6
|
DIST go1.12.17.src.tar.gz 20725913 BLAKE2B 2eef7374195302656268a42409619445dfeb3ede1f9218ae4eab195916876b97f7510cc62585a0bfdd9f86dddf8a74000032a84b29bc9891d84fc69db94f0274 SHA512 069f8f445d9d2268ebb14b2446fab34843d56283c04561636d122fd8b4c1ea0b63640a84437db7a7be71039440ffe170cd3f8025b03b0acf95f2a56fa2febec6
|
||||||
DIST go1.16.8.src.tar.gz 20922236 BLAKE2B 0c845ccb9f84566a4bb87414909a9bef1a7a3f5ecfb885ad48acaacb5fe2d2a9a7df5aface6be6e3e6b9b45f79667179aa5e7b37a8461170a7fc8fe76bc72b8c SHA512 49b3b341ee3dbf2964f8e938a6d797a48e4b46e19c6c6f240038cd48c8668b76982f0c9c61e38bfdc42eb03db72d125457905cba76589d1d7d2f825bc67587e3
|
DIST go1.17.1.src.tar.gz 22181735 BLAKE2B 77ce952e14c101776935c625aa39596a6b8923ca5ac264c72ed08a578f08fbbbc1825315a5dd84f9fa1412aaa7400b31e73117d5919aeb527c084173d8e11504 SHA512 23d4e003651204c5bcc5cf41437134e07a3fe3c188eb129f2d6366a7445a7919d6a7319c57483e91b3415fd28aa55df8d58eec398434f20ce6accd587925a14b
|
||||||
|
|||||||
@ -11,9 +11,9 @@
|
|||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
# @CODE
|
# @CODE
|
||||||
# COREOS_GO_VERSION=go1.16
|
# COREOS_GO_VERSION=go1.17
|
||||||
# @CODE
|
# @CODE
|
||||||
export COREOS_GO_VERSION="${COREOS_GO_VERSION:-go1.16}"
|
export COREOS_GO_VERSION="${COREOS_GO_VERSION:-go1.17}"
|
||||||
|
|
||||||
case "${EAPI:-0}" in
|
case "${EAPI:-0}" in
|
||||||
5|6) DEPEND="dev-lang/go:${COREOS_GO_VERSION#go}=" ;;
|
5|6) DEPEND="dev-lang/go:${COREOS_GO_VERSION#go}=" ;;
|
||||||
|
|||||||
@ -95,7 +95,7 @@ go_export() {
|
|||||||
# Ensure the `go` wrapper calls the version we expect
|
# Ensure the `go` wrapper calls the version we expect
|
||||||
export EGO="${COREOS_GO_VERSION}"
|
export EGO="${COREOS_GO_VERSION}"
|
||||||
|
|
||||||
# With Go 1.16, GO111MODULE=on is set by default.
|
# With Go >= 1.16, GO111MODULE=on is set by default.
|
||||||
# Few of our repos still don't support Go modules so we would need to set
|
# Few of our repos still don't support Go modules so we would need to set
|
||||||
# GO111MODULE=off for those packages.
|
# GO111MODULE=off for those packages.
|
||||||
if [[ "${COREOS_GO_GO111MODULE}" == "off" ]]; then
|
if [[ "${COREOS_GO_GO111MODULE}" == "off" ]]; then
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
# @CODE
|
# @CODE
|
||||||
# COREOS_GO_VERSION=go1.16
|
# COREOS_GO_VERSION=go1.17
|
||||||
# @CODE
|
# @CODE
|
||||||
|
|
||||||
case "${EAPI:-0}" in
|
case "${EAPI:-0}" in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user