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

.gitignore in subfolders not honored #147

Closed
l0calh05t opened this issue Jun 3, 2020 · 3 comments
Closed

.gitignore in subfolders not honored #147

l0calh05t opened this issue Jun 3, 2020 · 3 comments

Comments

@l0calh05t
Copy link

l0calh05t commented Jun 3, 2020

Cargo watch does not appear to honor .gitignore files in subfolders. For example, I have two folders that should be checked in and out as empty which contain the following .gitignore:

*
!.gitignore

I.e., everything except the .gitignore itself should be ignored. However, changes in these folders cause cargo-watch to trigger a build.

I am using cargo-watch 7.3.0 (and systemfd 0.3.0 in case it matters) on Windows 10.

@passcod
Copy link
Member

passcod commented Jun 4, 2020

That is known, yes. Neither does watchexec, which is our upstream on this. I'd love to eventually support this, of course, both for gitignores and for the other ignore file(s)... contributions are very welcomed on this aspect.

@l0calh05t
Copy link
Author

I just looked there, and there seems to be a pull request already: watchexec/watchexec#147

@passcod
Copy link
Member

passcod commented Jun 4, 2020

Oh, that's right. I'm not particularly happy about the entire state of that part of watchexec... but I think I'll go merge that to at least provide something.

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

No branches or pull requests

2 participants