| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows the modules to be cleaned up on prefix systems.
More information is available here:
https://github.com/golang/go/issues/27161
I would like to thank Raffaele Spinelli <rafspiny@gmail.com> for the
original patch this was based on.
Closes: https://bugs.gentoo.org/812977
Closes: https://github.com/gentoo/gentoo/pull/22365
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
|
|
|
|
| |
This reverts commit 9f41c938a745479414544fa9c03aaa1b6d9b989b.
Doesn't inherit it!
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
| |
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
As of go 1.16, --mod=readonly is the default, so we don't need to
specify it.
https://golang.org/ref/mod#build-commands
https://golang.org/doc/go1.16
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
| |
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
|
|
|
| |
This function is to be used in an ebuild that uses EGO_SUM and defines
src_unpack.
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
|
|
|
| |
This variable should be exported in the go-module_set_globals function
since it is not needed unless EGO_SUM is used.
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
| |
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
| |
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
| |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
The EGO_SUM variable replaces EGO_VENDOR for go modules.
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
|
|
| |
Signed-off-by: William Hubbs <williamh@gentoo.org>
|
|
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>
|