Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Cc: zmedico@g.o
Subject: Re: [gentoo-dev] [PATCH 1/1] go-module.eclass: introduce new eclass to handle go modules
Date: Mon, 16 Sep 2019 18:26:56
Message-Id: 20190916182646.GA27855@whubbs1.dev.av1.gaikai.org
In Reply to: Re: [gentoo-dev] [PATCH 1/1] go-module.eclass: introduce new eclass to handle go modules by Zac Medico
1 On Mon, Sep 16, 2019 at 10:48:14AM -0700, Zac Medico wrote:
2 > On 9/16/19 7:17 AM, William Hubbs wrote:
3 > > +BDEPEND=">=dev-lang/go-1.12"
4 > > +
5 > > +# The following go flags should be used for all go builds.
6 > > +# -mod=vendor stopps downloading of dependencies from the internet.
7 > > +# -v prints the names of packages as they are compiled
8 > > +# -x prints commands as they are executed
9 > > +export GOFLAGS="-mod=vendor -v -x"
10 >
11 > My experience with g-1.12.x was that you have to export GO111MODULE=on
12 > or else GOFLAGS="-mod=vendor" triggers an error like this:
13 >
14 > build flag -mod=vendor only valid when using modules
15
16 I thought that was only if ${S} was in GOPATH, but I'll take a look real
17 quick. If it is, would it be best to bump the BDEPEND or turn on the
18 environment setting?
19
20 Thanks,
21
22 William

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies