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

Hint for testing if inotify is fully supported? #42

Closed
a12one opened this issue Jul 1, 2020 · 1 comment
Closed

Hint for testing if inotify is fully supported? #42

a12one opened this issue Jul 1, 2020 · 1 comment

Comments

@a12one
Copy link

a12one commented Jul 1, 2020

In the README we are warned about "Incomplete inotify support on WSL and Docker for Mac can cause entr to respond inconsistently", may I ask if there is a way to check/test if the current environment has complete inotify support? e.g. an alpine docker container running on an Ubuntu host machine?

@eradman
Copy link
Owner

eradman commented Jul 2, 2020

If the host machine is Linux, inotify support works for Docker containers. So no worries, your setup doesn't require a workaround.

If the host is Mac or Windows it doesn't.

To test it:

  1. In the docker container run
echo file.txt | entr -p echo "file changed"
  1. On the host modify the file
echo "123" >> file.txt

@eradman eradman closed this as completed Jul 2, 2020
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