go-module.eclass: fix regression with -mod=vendor setting
authorWilliam Hubbs <william.hubbs@sony.com>
Tue, 10 Mar 2020 16:35:38 +0000 (11:35 -0500)
committerWilliam Hubbs <williamh@gentoo.org>
Tue, 10 Mar 2020 16:43:29 +0000 (11:43 -0500)
commitf3c78c7bd7a0ea69fafdf7d3747e6f4008a8afea
treeffe217bc416f9e3f5e9f7c3c9f36a45d1c859264
parent1e9ed1d68823f5532132e4349f6fef5d632a4911
go-module.eclass: fix regression with -mod=vendor setting

If EGO_VENDOR is tested in global scope, it needs to be set before the
eclass is inherited. Several ebuilds do not do this, so we need to
perform this test and set -mod=vendor in the appropriate phase function.

Signed-off-by: William Hubbs <williamh@gentoo.org>
eclass/go-module.eclass