mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-15 22:31:59 +01:00
Merge pull request #1304 from flatcar-linux/dongsu/go-1.17
dev-lang/go,*: update Go to 1.17.1
This commit is contained in:
commit
371afe49a4
@ -16,8 +16,8 @@ fi
|
||||
pushd "${SDK_OUTER_SRCDIR}/third_party/coreos-overlay" >/dev/null || exit
|
||||
|
||||
# Parse the Manifest file for already present source files and keep the latest version in the current series
|
||||
# DIST go1.16.src.tar.gz ... => 1.16
|
||||
# DIST go1.16.3.src.tar.gz ... => 1.16.3
|
||||
# DIST go1.17.src.tar.gz ... => 1.17
|
||||
# DIST go1.17.1.src.tar.gz ... => 1.17.1
|
||||
VERSION_OLD=$(sed -n "s/^DIST go\(${VERSION_SHORT}\.*[0-9]*\)\.src.*/\1/p" dev-lang/go/Manifest | sort -ruV | head -n1)
|
||||
if [[ "${VERSION_NEW}" = "${VERSION_OLD}" ]]; then
|
||||
echo "already the latest Go, nothing to do"
|
||||
|
||||
@ -13,7 +13,7 @@ jobs:
|
||||
- name: Fetch latest Go release
|
||||
id: fetch-latest-release
|
||||
env:
|
||||
GO_VERSION: "1.16"
|
||||
GO_VERSION: "1.17"
|
||||
run: |
|
||||
git clone --depth=1 --no-checkout https://github.com/golang/go
|
||||
versionMain=$(git -C go ls-remote --tags origin | cut -f2 | sed -n "/refs\/tags\/go${GO_VERSION}\.[0-9]*$/s/^refs\/tags\/go//p" | egrep -v -e '(beta|rc)' | sort -ruV | head -1)
|
||||
|
||||
@ -5,7 +5,7 @@ EAPI=6
|
||||
|
||||
GITHUB_URI="github.com/containerd/containerd"
|
||||
COREOS_GO_PACKAGE="${GITHUB_URI}"
|
||||
COREOS_GO_VERSION="go1.16"
|
||||
COREOS_GO_VERSION="go1.17"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
EGIT_REPO_URI="https://${GITHUB_URI}.git"
|
||||
|
||||
@ -6,7 +6,7 @@ GIT_COMMIT=311fbfaf7d
|
||||
EGO_PN="github.com/docker/cli"
|
||||
|
||||
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
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ EAPI=6
|
||||
EGO_PN="github.com/docker/libnetwork"
|
||||
|
||||
COREOS_GO_PACKAGE="${EGO_PN}"
|
||||
COREOS_GO_VERSION="go1.16"
|
||||
COREOS_GO_VERSION="go1.17"
|
||||
COREOS_GO_GO111MODULE="off"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
|
||||
@ -5,7 +5,7 @@ EAPI=6
|
||||
|
||||
GITHUB_URI="github.com/opencontainers/runc"
|
||||
COREOS_GO_PACKAGE="${GITHUB_URI}"
|
||||
COREOS_GO_VERSION="go1.16"
|
||||
COREOS_GO_VERSION="go1.17"
|
||||
# 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
|
||||
COMMIT_ID="61ab78b58f2c0c3fbfc63477f2c020e825b9789d"
|
||||
|
||||
@ -4,12 +4,12 @@
|
||||
EAPI=7
|
||||
EGO_PN=github.com/docker/docker
|
||||
GIT_COMMIT=4662437124
|
||||
# Flatcar: force building with go1.16 like upstream does
|
||||
COREOS_GO_VERSION="go1.16"
|
||||
# Flatcar: force building with go1.17 like upstream does
|
||||
COREOS_GO_VERSION="go1.17"
|
||||
COREOS_GO_GO111MODULE="off"
|
||||
|
||||
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
|
||||
|
||||
DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
|
||||
|
||||
@ -38,8 +38,7 @@ RDEPEND="${RDEPEND}
|
||||
dev-lang/swig
|
||||
dev-lang/yasm
|
||||
dev-lang/go:1.12
|
||||
dev-lang/go:1.15
|
||||
dev-lang/go:1.16
|
||||
dev-lang/go:1.17
|
||||
dev-lang/go-bootstrap
|
||||
dev-lang/tcl
|
||||
dev-libs/dbus-glib
|
||||
|
||||
@ -1,3 +1,2 @@
|
||||
DIST go1.12.17.src.tar.gz 20725913 BLAKE2B 2eef7374195302656268a42409619445dfeb3ede1f9218ae4eab195916876b97f7510cc62585a0bfdd9f86dddf8a74000032a84b29bc9891d84fc69db94f0274 SHA512 069f8f445d9d2268ebb14b2446fab34843d56283c04561636d122fd8b4c1ea0b63640a84437db7a7be71039440ffe170cd3f8025b03b0acf95f2a56fa2febec6
|
||||
DIST go1.15.11.src.tar.gz 23029946 BLAKE2B b937a8e350b6a30e71427d8cbc52edb73e11f055c16890c81ba4bf2f6aa90fd223f0af9517021741e791c22b78f840b3485ea8df4853865dceae354f4803c55d SHA512 52a107220f02197f07c0d3afef403c3762428c1f69107fa7123bc6cdf6b47dd4e65f2ab3979ad7d12a265b0c9bd0b66e6e50eb91f7fa994ba22882f117afe289
|
||||
DIST go1.16.8.src.tar.gz 20922236 BLAKE2B 0c845ccb9f84566a4bb87414909a9bef1a7a3f5ecfb885ad48acaacb5fe2d2a9a7df5aface6be6e3e6b9b45f79667179aa5e7b37a8461170a7fc8fe76bc72b8c SHA512 49b3b341ee3dbf2964f8e938a6d797a48e4b46e19c6c6f240038cd48c8668b76982f0c9c61e38bfdc42eb03db72d125457905cba76589d1d7d2f825bc67587e3
|
||||
DIST go1.17.1.src.tar.gz 22181735 BLAKE2B 77ce952e14c101776935c625aa39596a6b8923ca5ac264c72ed08a578f08fbbbc1825315a5dd84f9fa1412aaa7400b31e73117d5919aeb527c084173d8e11504 SHA512 23d4e003651204c5bcc5cf41437134e07a3fe3c188eb129f2d6366a7445a7919d6a7319c57483e91b3415fd28aa55df8d58eec398434f20ce6accd587925a14b
|
||||
|
||||
@ -1,8 +0,0 @@
|
||||
# Copyright 2019 Kinvolk GmbH.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit coreos-go-lang
|
||||
|
||||
KEYWORDS="-* amd64 arm64"
|
||||
@ -11,9 +11,9 @@
|
||||
#
|
||||
# Example:
|
||||
# @CODE
|
||||
# COREOS_GO_VERSION=go1.16
|
||||
# COREOS_GO_VERSION=go1.17
|
||||
# @CODE
|
||||
export COREOS_GO_VERSION="${COREOS_GO_VERSION:-go1.16}"
|
||||
export COREOS_GO_VERSION="${COREOS_GO_VERSION:-go1.17}"
|
||||
|
||||
case "${EAPI:-0}" in
|
||||
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
|
||||
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
|
||||
# GO111MODULE=off for those packages.
|
||||
if [[ "${COREOS_GO_GO111MODULE}" == "off" ]]; then
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
#
|
||||
# Example:
|
||||
# @CODE
|
||||
# COREOS_GO_VERSION=go1.16
|
||||
# COREOS_GO_VERSION=go1.17
|
||||
# @CODE
|
||||
|
||||
case "${EAPI:-0}" in
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user