mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
go-module.eclass: set a default for GOMODCACHE
Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
@@ -82,6 +82,12 @@ export GO111MODULE=on
|
||||
# See "go help environment" for information on this setting
|
||||
export GOCACHE="${T}/go-build"
|
||||
|
||||
# Set the default for the go module cache
|
||||
# This could potentially be shared so that all go packages put the
|
||||
# modules they download in a shared location.
|
||||
# See "go help environment" for information on this setting
|
||||
export GOMODCACHE="${T}/go-mod"
|
||||
|
||||
# The following go flags should be used for all builds.
|
||||
# -modcacherw makes the build cache read/write
|
||||
# -v prints the names of packages as they are compiled
|
||||
|
||||
Reference in New Issue
Block a user