public inbox for goredo-devel@lists.cypherpunks.ru
Atom feed
From: "Jan Niklas Böhm" <mail@jnboehm•com>
To: goredo-devel@lists.cypherpunks.ru
Subject: Name of temporary files changed
Date: Fri, 9 Sep 2022 16:42:03 +0200 [thread overview]
Message-ID: <247f60c8-f543-b189-1c03-0983e1c50c13@jnboehm.com> (raw)
Hello again,
I came across a minor change in how the temporary files are named. In
the current version they are simply the `prefix` with a random number
appended. As an example: if `redo target` is called then the temporary
file will now be `target123456789` (is used to be
`.redo.target.123456789`). If the job is cancelled then this starts
littering the directory visibly. Furthermore it is also not
straightforward to ignore in .gitignore.
Could it be changed back to the earlier naming scheme? It should be
possible with `os.CreateTemp(dir, TmpPrefix+prefix+".")` in the file
"tmp.go" since the random pattern to create a unique filename will
simply be appended to the second argument without a leading dot.
(`TmpPrefix` then is `.redo` I assume.)
Cheers
next reply other threads:[~2022-09-09 14:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-09 14:42 Jan Niklas Böhm [this message]
2022-09-09 15:46 ` Name of temporary files changed Sergey Matveev