summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* eclass/go-module.eclass: remove EGO_VENDOR supportWilliam Hubbs2020-06-121-75/+6
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* eclass/go-module: remove go-get for corner case of unneeded deep build ↵Robin H. Johnson2020-03-101-11/+6
| | | | | | | | | | | | | | dependencies The helper function used to call 'go get' to verify by fake-fetching everything from the main go.mod. However 'go get' also turns out to recursively try to fetch everything in dependencies, even materials that are used only for tests of the dependencies, or code generation. If EGO_SUM is missing an entry now, it will fail during the build process rather than the helper function. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* go-module.eclass: replace GOFLAGS if EGO_VENDOR is being usedWilliam Hubbs2020-03-101-1/+3
| | | | | | | | | We can't repeat the -mod flag, so we need to replace the GOFLAGS if EGO_VENDOR is being used. Closes: https://bugs.gentoo.org/7111640 Signed-off-by: William Hubbs <williamh@gentoo.org>
* go-module.eclass: fix regression with -mod=vendor settingWilliam Hubbs2020-03-101-1/+1
| | | | | | | | 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>
* go-module.eclass: fix strip restrictionWilliam Hubbs2020-03-081-1/+1
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* eclass/go-module: clarify that h1: should be omitted from EGO_SUMRobin H. Johnson2020-03-071-4/+22
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* go-module: workaround MissingUnpackerDep QA false positiveRobin H. Johnson2020-03-071-0/+6
| | | | | | | | | | | | | | | | | The go.sum behavior in this eclass triggers a false positive from pkgcheck, specifically: MissingUnpackerDep: version ...: missing BDEPEND="app-arch/unzip" The eclass & package do NOT invoke any direct unpacking of the zipfiles, and leave that entirely to Go's builtin code, making app-arch/unzip completely unneeded. Adding packages using the new eclass functionality will spam the above MissingUnpackerDep warning, so workaround it for now, until pkgcheck/QA can not give the false positive. Reference: https://github.com/pkgcore/pkgcheck/issues/214 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* go-module.eclass: remove the -mod readonly switch from go getWilliam Hubbs2020-03-061-2/+0
| | | | | | | This is not valid in go 1.14, and according to their release notes was ignored or caused the build to fail. Signed-off-by: William Hubbs <williamh@gentoo.org>
* go-module.eclass: add support for EGO_SUMWilliam Hubbs2020-03-041-40/+326
| | | | | | The EGO_SUM variable replaces EGO_VENDOR for go modules. Signed-off-by: William Hubbs <williamh@gentoo.org>
* */*: Bump copyright on files touched this yearMichał Górny2020-02-111-1/+1
| | | | | | | Update the copyright notice on all files that were touched since January 1st but did not have the notice updated. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* go-module.eclass: Fix case in copyrightMichał Górny2020-01-261-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* go-module.eclass: set a reasonable default for the go build cacheWilliam Hubbs2020-01-061-0/+4
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* go-module.eclass: only show warning for new packagesWilliam Hubbs2019-10-021-0/+1
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* go-module.eclass: new eclass for go modulesWilliam Hubbs2019-09-301-0/+177
This eclass includes the basic settings and src_unpack/pkg_postinst functions for software written in the Go programming language that uses Go modules. Signed-off-by: William Hubbs <williamh@gentoo.org>