From: | Zac Medico <zmedico@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o, William Hubbs <williamh@g.o> | ||
Subject: | Re: [gentoo-dev] [PATCH 1/1] go-module.eclass: introduce new eclass to handle go modules | ||
Date: | Mon, 16 Sep 2019 17:48:21 | ||
Message-Id: | 55ceba99-1d34-070a-fe3d-17c497621c9d@gentoo.org | ||
In Reply to: | [gentoo-dev] [PATCH 1/1] go-module.eclass: introduce new eclass to handle go modules by William Hubbs |
1 | On 9/16/19 7:17 AM, William Hubbs wrote: |
2 | > +BDEPEND=">=dev-lang/go-1.12" |
3 | > + |
4 | > +# The following go flags should be used for all go builds. |
5 | > +# -mod=vendor stopps downloading of dependencies from the internet. |
6 | > +# -v prints the names of packages as they are compiled |
7 | > +# -x prints commands as they are executed |
8 | > +export GOFLAGS="-mod=vendor -v -x" |
9 | |
10 | My experience with g-1.12.x was that you have to export GO111MODULE=on |
11 | or else GOFLAGS="-mod=vendor" triggers an error like this: |
12 | |
13 | build flag -mod=vendor only valid when using modules |
14 | -- |
15 | Thanks, |
16 | Zac |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-dev] [PATCH 1/1] go-module.eclass: introduce new eclass to handle go modules | William Hubbs <williamh@g.o> |