Use os.lstat() instead of os.stat().
I think this aligns better with how redo works. Otherwise, if a.do creates a as a symlink, then changes to the symlink's *target* will change a's stat/stamp information without re-running a.do, which looks to redo like you modified a by hand, which causes it to stop running a.do altogether. With this change, modifications to a's target are okay, but they don't trigger any redo dependency changes. If you want that, then a.do should redo-ifchange on its symlink target explicitly.
This commit is contained in:
parent
61d35d3972
commit
34669fba65
8 changed files with 47 additions and 2 deletions
4
t/360-symlinks/.gitignore
vendored
Normal file
4
t/360-symlinks/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
*.did
|
||||
*.extra
|
||||
a
|
||||
b
|
||||
Loading…
Add table
Add a link
Reference in a new issue