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

Run on additions, not just modifications #422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RobinDaugherty
Copy link

@RobinDaugherty RobinDaugherty commented Feb 19, 2021

Some platforms (notably years-broken Docker Desktop) don't reliably notify of file modifications. It's caused a problem that guard-rspec is one of the few guards that does not run on file additions.

I haven't been able to find a reason that guard-rspec doesn't run on additions. In #391 it's discussed without any detractors.

There seems to be no downside to running on both file additions as well as modifications. For those running on macOS with Docker Desktop and listener, it seems to be necessary.


A workaround I've seen is adding the following to the Guardfile: Guard::RSpec.class_eval { alias_method :run_on_additions, :run_on_modifications }
But I would rather not continue to have to work around this shortcoming, especially when the fix seems to have no downside.

lib/guard/rspec.rb Outdated Show resolved Hide resolved
spec/lib/guard/rspec_spec.rb Outdated Show resolved Hide resolved
@RobinDaugherty RobinDaugherty force-pushed the feature/run-on-additions branch from 76f3565 to 3e3e1c4 Compare February 19, 2021 20:15
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

Successfully merging this pull request may close these issues.

2 participants