mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
app-emulation/docker{,-cli}: switch to go1.16
Upstream has switched to go 1.16, but still doesn't use go modules. The ebuilds needed fixing up after the automated PR was created. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
a6aa1a604d
commit
ff2481c2ed
@ -6,7 +6,7 @@ GIT_COMMIT=311fbfaf7d
|
||||
EGO_PN="github.com/docker/cli"
|
||||
|
||||
COREOS_GO_PACKAGE="${EGO_PN}"
|
||||
COREOS_GO_VERSION="go1.13"
|
||||
COREOS_GO_VERSION="go1.16"
|
||||
|
||||
inherit bash-completion-r1 golang-vcs-snapshot coreos-go-depend
|
||||
|
||||
|
@ -4,11 +4,12 @@
|
||||
EAPI=7
|
||||
EGO_PN=github.com/docker/docker
|
||||
GIT_COMMIT=4662437124
|
||||
# Flatcar: force building with go1.13 like upstream does
|
||||
COREOS_GO_VERSION="go1.13"
|
||||
# Flatcar: force building with go1.16 like upstream does
|
||||
COREOS_GO_VERSION="go1.16"
|
||||
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.13
|
||||
# Flatcar: use coreos-go-depend to force building with go1.16
|
||||
inherit coreos-go-depend
|
||||
|
||||
DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
|
||||
@ -206,11 +207,6 @@ src_compile() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Flatcar:
|
||||
# need to set go1.13 in DOCKER_BUILDTAGS, to avoid build
|
||||
# failures caused by github.com/pkg/errors >= 0.9.1.
|
||||
DOCKER_BUILDTAGS+=" go1.13"
|
||||
|
||||
# Flatcar:
|
||||
# inject LDFLAGS for torcx
|
||||
if use hardened; then
|
||||
|
Loading…
Reference in New Issue
Block a user