This repository was archived by the owner on Jan 18, 2025. It is now read-only.
This repository was archived by the owner on Jan 18, 2025. It is now read-only.
Cargo-watch reacts to IsFile
event, while it should not. #242
Open
Description
Hi, I'm using cargo-watch
8.1.1 (because 8.3.0 does not work for me). Recently, our build script, which uses cargo-watch under the hood, started looping indefinitely. After debugging it turned out, that when using std::fs::copy("a.txt", "b.txt")
on macOS, a file system event IsFile
is sometimes emitted on the source file ("a.txt"
). The term "sometimes" is better explained here. Our build script is copying some files to target directory, which causes the sources to emit this event, which causes cargo-watch
to re-run the whole operation again.
System: macOS Monterey (12.0.1), M1 pro