pack issues a warning once all temporary directories from .tmp0 to .tmp50 already exist.
a new function withTmpDir makes sure temporary directories are always removed unless pack is aborted early
This will not completely fix #253: The garbage collector needs to properly build the pack environment before it can remove artefacts from older package collections and building the envirionment requires a temporary directory. However the error described in #253 only manifests if users keep stoically ignoring the warning added with this PR.
This addresses #253 in two ways:
.tmp0
to.tmp50
already exist.withTmpDir
makes sure temporary directories are always removed unless pack is aborted earlyThis will not completely fix #253: The garbage collector needs to properly build the pack environment before it can remove artefacts from older package collections and building the envirionment requires a temporary directory. However the error described in #253 only manifests if users keep stoically ignoring the warning added with this PR.