Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/skopeo/
Date: Fri, 06 Sep 2019 23:53:35
Message-Id: 1567813924.8b321ed35ee70fd661b5e29ac39d22d413d19db1.zmedico@gentoo
1 commit: 8b321ed35ee70fd661b5e29ac39d22d413d19db1
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 6 23:51:45 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 6 23:52:04 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b321ed3
7
8 app-emulation/skopeo: Use GO111MODULE=on for -mod=vendor backward compat
9
10 Use GO111MODULE=on together with -mod=vendor since otherwise -mod=vendor
11 fails with go-1.12 like this:
12
13 build flag -mod=vendor only valid when using modules
14
15 Package-Manager: Portage-2.3.75, Repoman-2.3.17
16 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
17
18 app-emulation/skopeo/skopeo-0.1.39.ebuild | 5 ++---
19 1 file changed, 2 insertions(+), 3 deletions(-)
20
21 diff --git a/app-emulation/skopeo/skopeo-0.1.39.ebuild b/app-emulation/skopeo/skopeo-0.1.39.ebuild
22 index 80e35c4d984..3af894ea4f9 100644
23 --- a/app-emulation/skopeo/skopeo-0.1.39.ebuild
24 +++ b/app-emulation/skopeo/skopeo-0.1.39.ebuild
25 @@ -30,9 +30,8 @@ RESTRICT="test"
26
27 src_compile() {
28 local BUILDTAGS="containers_image_ostree_stub"
29 - set -- env -u GOCACHE -u XDG_CACHE_HOME GOPATH="${WORKDIR}/${P}" \
30 - go build $(has_version -b '>=dev-lang/go-1.13' && printf -- -mod=vendor) \
31 - -ldflags "-X main.gitCommit=${COMMIT}" \
32 + set -- env -u GOCACHE -u XDG_CACHE_HOME GO111MODULE=on GOPATH="${WORKDIR}/${P}" \
33 + go build -mod=vendor -ldflags "-X main.gitCommit=${COMMIT}" \
34 -gcflags "${GOGCFLAGS}" -tags "${BUILDTAGS}" \
35 -o skopeo ./cmd/skopeo
36 echo "$@"