cargo-watch icon indicating copy to clipboard operation
cargo-watch copied to clipboard

`cargo watch` in a workspace root gets triggered by the updated `Cargo.lock`

Open Nonius opened this issue 3 years ago • 2 comments

Running cargo watch in a workspace root gets triggered by the updated Cargo.lock file. This creates an infinite loop.

I have verified this by running cargo watch --why in a skeleton workspace.

Nonius avatar Jun 06 '21 19:06 Nonius

I'm also interested in looking into this, if I can get some tips where to start.

Nonius avatar Jun 06 '21 19:06 Nonius

I mean I guess that's really not a bug, right now. With --watch-when-idle it will stop restarting the process on file change immediately. That will probably become the default in 9.0

passcod avatar Jun 06 '21 22:06 passcod