Closed crossbone-magister closed 1 year ago
I assume this is due to the usage of AtomicFile which we use to prevent corruption of our database. Here we write to a temporary file first and, on success, swap this with the original one. It seems as if here the link is not followed, so it gets replaced and not the target.
@sruffell can you confirm this?
I assume this is due to the usage of AtomicFile which we use to prevent corruption of our database. Here we write to a temporary file first and, on success, swap this with the original one. It seems as if here the link is not followed, so it gets replaced and not the target.
@sruffell can you confirm this?
Yes, this is the case here. The AtomicFile implementation is not link aware. I can take a look to see if link-awareness can be easily added.
For symlinks that have valid targets, this should be fixed in #547.
Report
If file
~/.config/timewarrior.cfg
is a symlink, runningtimew config
to update the configuration replaces it with a physical file.Example steps to reproduce
Details
Timewarrior version
OS Info
Ubuntu 22.04 on wsl
Python version