-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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/tmp
GIMME_TMP
to /tmp/gimme-$USER
and exclude it from backups as withGIMME_VERSION_PREFIX
.Closes #7