On 9/16/19 11:26 AM, William Hubbs wrote: > On Mon, Sep 16, 2019 at 10:48:14AM -0700, Zac Medico wrote: >> On 9/16/19 7:17 AM, William Hubbs wrote: >>> +BDEPEND=">=dev-lang/go-1.12" >>> + >>> +# The following go flags should be used for all go builds. >>> +# -mod=vendor stopps downloading of dependencies from the internet. >>> +# -v prints the names of packages as they are compiled >>> +# -x prints commands as they are executed >>> +export GOFLAGS="-mod=vendor -v -x" >> >> My experience with g-1.12.x was that you have to export GO111MODULE=on >> or else GOFLAGS="-mod=vendor" triggers an error like this: >> >> build flag -mod=vendor only valid when using modules > > I thought that was only if ${S} was in GOPATH, but I'll take a look real > quick. If it is, would it be best to bump the BDEPEND or turn on the > environment setting? I've tested again, and in fact it appears that GOPATH="${S}" triggers this error, so I guess it would be sufficient to ensure that GOPATH is unset. Maybe it's cleaner to explicitly export GO111MODULE=on though. -- Thanks, Zac