Default GIMME_TMP to /tmp/gimme-$USER#17
Conversation
and also exclude it from backups as with `GIMME_VERSION_PREFIX`
|
My only concern with moving this out of |
|
@tianon Very true! Given this solution vs., say, |
$ git grep -n GIMME_TMP gimme
gimme:34:#+ GIMME_TMP - temp directory (default '${GIMME_TMP}')
gimme:347: cat >"${GIMME_TMP}/test.go" <<'EOF'
gimme:354: "${1}/bin/go" run "${GIMME_TMP}/test.go"
gimme:455: local bin_tgz="${GIMME_TMP}/go${version}.${GIMME_OS}.${arch}.tar.gz"
gimme:472: local src_tgz="${GIMME_TMP}/go${GIMME_GO_VERSION}.src.tar.gz"
gimme:547: local dlfile="${GIMME_TMP}/known-dl"
gimme:801:: "${GIMME_TMP:=${TMPDIR:-/tmp}/gimme}"Looking at these uses, Given we don't keep the tarballs (ie, |
|
TLDR: I'd prefer something like |
|
@tianon I like your idea better! |
GIMME_TMP to ~/.gimme/tmpGIMME_TMP to /tmp/gimme-$USER
and exclude it from backups as withGIMME_VERSION_PREFIX.Closes #7