tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Setting GOTMPDIR



sysutils/packer currently fails for me due to my limit of 1GB on the size of /tmp ramdisks. It's unclear to me what the difference is between GOTMPDIR and GOCACHE (which we already set), but I'd like to also set GOTMPDIR to the same location to avoid this, as I don't feel that 1GB is an unreasonable limit.

The problem is that go only cleans up at the end of a complete build phase rather than for each object, so it's not really similar in the way you'd expect TMPDIR to be used by any other compiler.

It's getting close to freeze time, so despite this seeming to be a trivial change I'd just like to confirm I'm not going to break anything in surprising ways, i.e. applying this change:

  --- a/lang/go/go-module.mk
  +++ b/lang/go/go-module.mk
   MAKE_ENV+=     GOCACHE=${WRKDIR}/.cache/go-build
  +MAKE_ENV+=     GOTMPDIR=${WRKDIR}/.cache/go-build

and the same for go-package.mk.

Thanks,

--
Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index