Subject: CVS commit: pkgsrc/lang/go
From: Jonathan Perkin
Date: 2024-12-06 12:05:48
Message id: 20241206110548.5B785FC1C@cvs.NetBSD.org

Log Message:
go: Set GOTMPDIR.

Go uses TMPDIR for ephemeral objects, but unlike other compilers does not
clean up quickly enough, so even with a reasonably large tmpfs limit of 1G
some package builds can fail due to too many leftover objects.

Use the same directory as GOCACHE and ensure it is created after distfile
extraction.

Tested in a bulk build on SmartOS and confirmed to fix a number of package
builds.  No feedback on proposal to tech-pkg@.

Files:
RevisionActionfile
1.22modifypkgsrc/lang/go/go-module.mk
1.29modifypkgsrc/lang/go/go-package.mk