-
Notifications
You must be signed in to change notification settings - Fork 29
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
Ignore directory prefixed with dot #17
Comments
gow -i .mongo-data <...> Though I'm confused about the meaning of "directories prefixed with dot are ignored by |
Hmm on second thought, |
@mitranim I faced the same problem Real case: in my root folder there is a data folder which is a volume for docker containers. So "permission denied" from watcher... I looked at the source code of rjeczalik/notify, there is no way to get around errors of this kind. Some person tried to fix it (add the ability to skip folders), but this code was not accepted. Conclusion: can we make it so that the recursive pass through the file system is on the gow side, and the necessary folders are already passed as arguments to the watcher? |
Learned more. Even the ignore list on our part will not help, since the rjeczalik/notify automatically scan all nested folders recursively. I looked at how other tools get around this problem - they all switched to fsnotify/fsnotify |
Main reasons I used
If possible, I'd prefer a solution that doesn't involve switching to a polling-based library. |
Yes, I see.
This is exactly the main problem: it tries to read folders that are not accessible. So with rjeczalik/notify we won't be able to bypass the permissions issue... Anyway, thank you for your attention to this problem. Ping me if you have any advice or questions |
Before doing any reworks, it would be nice if I could debug this locally. There might be simpler solutions. I tried to reproduce this by altering directory permissions, but wasn't successful. If anyone still has this problem, please suggest how to reproduce. |
When running
go test ./...
Directories prefiexed with dot :
in my case, is ignored by
go
Using
gow test ./...
seems to reading that directory,
The problem is, that that directory is bound to container, thus resulting in this error:
The text was updated successfully, but these errors were encountered: