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

* Re: Name of temporary files changed
  2022-09-09 14:42 Name of temporary files changed Jan Niklas Böhm
@ 2022-09-09 15:46 ` Sergey Matveev
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Matveev @ 2022-09-09 15:46 UTC (permalink / raw)
  To: goredo-devel

[-- Attachment #1: Type: text/plain, Size: 367 bytes --]

Greetings!

*** Jan Niklas Böhm [2022-09-09 16:42]:
>Could it be changed back to the earlier naming scheme?

Definitely it should be changed back! Thank you for noticing that.
It was not intentional at all -- those prefixes were lost accidentally.

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ 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