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 |