Skip to content
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 -w doesn't exclude other files #81

Closed
Boscop opened this issue Oct 6, 2017 · 4 comments
Closed

cargo watch -w doesn't exclude other files #81

Boscop opened this issue Oct 6, 2017 · 4 comments

Comments

@Boscop
Copy link

Boscop commented Oct 6, 2017

I'm trying to have my exe only restart when it compiles, so I'm doing this in 2 instances of cmd.exe:

cargo watch -q -x check -s "echo > .watch"
cargo watch --no-gitignore -w .watch -x "run -p mybin"

I'm running this in a workspace where mybin is the binary I want to run and I have .watch in my .gitignore file.
But the 2nd command restarts mybin even when a rust source file changes on disk, not just when the .watch file changes, why?
Even when I don't run the 1st command, only the 2nd one, it also behaves that way...
Any help would be greatly appreciated :)

@passcod
Copy link
Member

passcod commented Oct 6, 2017

This is on windows?

I'm not sure why that doesn't work. Looks right to me.

Can you try with a file that doesn't start with a dot, just to see?

@Boscop
Copy link
Author

Boscop commented Oct 6, 2017

Yes, Windows 8.1.
I tried with a file named _watch, (also added it to .gitignore) but still the same behavior :(

@Boscop
Copy link
Author

Boscop commented Oct 7, 2017

Considering #82 too, it looks like ignoring files doesn't seem to work at all for me for some reason..

@passcod
Copy link
Member

passcod commented Jul 13, 2018

Closing (reopen if still occurs)

@passcod passcod closed this as completed Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants