logoalt Hacker News

mizmaryesterday at 5:09 PM1 replyview on HN

ninja fails to detect that file changed from last build - all it's mtime, ctime, inode and size can change, yet it's not detected as long as mtime is not newer than target.


Replies

loegyesterday at 5:47 PM

Again, this is just a weird workflow, and you're assuming copy/edit don't bump mtime. That usually isn't the case. If you're doing this weird thing, you can just run `touch` when you move files over existing files like this to explicitly bump mtime.

show 2 replies