public inbox for goredo-devel@lists.cypherpunks.ru
Atom feed
* Name of temporary files changed
@ 2022-09-09 14:42 Jan Niklas Böhm
  2022-09-09 15:46 ` Sergey Matveev
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Niklas Böhm @ 2022-09-09 14:42 UTC (permalink / raw)
  To: goredo-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-09 15:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-09 14:42 Name of temporary files changed Jan Niklas Böhm
2022-09-09 15:46 ` Sergey Matveev