-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cargo watch triggered by ignored file with non locked installation #176
Comments
I forgot to mention I use a nightly toolchain: |
Bumping |
This is due to BurntSushi/ripgrep@7534d51 in conjunction with According to the mentioned commit, I suspect |
That globset upgrade breaks our tests (and various other behaviour), so I've pinned it back, and that's why |
Done in 7.8.1 |
Hi, the main problem is that
cargo-watch
is triggered by an update of.cargo/.package-cache
when/.cargo/.package-cache
is in the.gitignore
and also marked as ignored by-i ".cargo/*"
. That leads to an infinite watch loop.And I've spent half a day trying to narrow down the problem. Here are the results.
It can be reproduced with multiple versions of
cargo-watch
: 7.7.0, 7.7.1, 7.8.0. The following concerns 7.8.0.--poll
does not have that problem.I have a version of
cargo-watch
compiled in May or June 2021 which does not have that problem. If I reinstall it in the exact same setup (basically debian buster), the problem appears.If I do
cargo install cargo-watch --locked
then the problem vanishes. That is the first glimpse of hope.The difference between the two can be summarized to the following diff in dependency versions:
I did not investigate more, but I think that is a good start for further investigation. Maybe somebody will have a flash when seening that diff :).
The text was updated successfully, but these errors were encountered: