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
When using -G option, the wrong file is watched to restart Guard #857
Comments
Yes, it's a bug because Guard should use the Guardfile given on the commandline. Instead, it's using fixed rules: https://github.com/guard/guard/blob/28b2dc4/lib/guard.rb#L154 |
I just found this issue and I believe I can see the same behaviour in my context. Writing some details below for anyone who might trip over this bug. I have my Guardfile in a subdir, which is watched by Guard. (I don't want to recursively watch the whole project root, because of performance and symlinks)
When changing the Guardfile I get the following error message
Error goes away when I symlink the Guardfile from my project root dir to guardwatch/Guardfile
|
I have 2 Guard files:
Guardfile
andGuardfile.client
. They work fine together, using guard-process. I run them in 2 separate terminals.The issue is that when I save
Guardfile.client
, Guard does not restart. When I saveGuardfile
, both restart withWARN - Guardfile changed -- _guard-core will exit.
The expected behavior is that when I save
Guardfile
, the guard that is watching that file should restart. When I saveGuardfile.client
, the guard that is watching that file should restart.The text was updated successfully, but these errors were encountered: