On Wed, Apr 26, 2023 at 06:43:04PM +0500, Anna (cybertailor) Vyalkova wrote:
> On 2023-04-25 16:09, Maciej Barć wrote:
> > You would also have to have correct permissions on cache dirs 
> > (root:portage or portage:portage) this also means that the cache dir 
> > will have to be set during build explicitly.
> > Do both Nim and Go support setting it?
> 
> Yes. For Nim it would be something like that:
> 
>       # nim.cfg
>       --nimcache:"${EPREFIX}/var/cache/nim/${CATEGORY}/${PN}"
> 
> And for Go:
> 
>       export GOCACHE="${EPREFIX}/var/cache/go"

This would be very easy to do in the go-module eclass, but we would need
to test how it works with go upgrades. This cache is for compiled
objects, so I hope it would clean the cache and restart it with
every go upgrade since compiled go objects are not compatible between go
versions.

William

Attachment: signature.asc
Description: PGP signature

Reply via email to