-
Notifications
You must be signed in to change notification settings - Fork 66
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
Blacklist .git/FETCH_HEAD in the watcher #731
Comments
Hey 👋, thanks for reporting that bug. Unfortunately, I could not reproduce it. The watcher should already be ignoring dot folders as you can see here https://github.com/graphql-nexus/nexus/blob/master/src/lib/watcher/watcher.ts#L91 What OS are you on? |
This happened to me on OSX while using GitKraken |
@juspky are you able to reliably reproduce on your side? |
yes I just tried it out with the latest -next release |
Thanks @juspky we'll try to create a repro again. |
Hey, I created a repository to reproduce this issue; https://github.com/SpaceK33z/graphql-nexus-watcher-issue This issue started happening when I switched to use Next.js as "server". It will also restart on all changes in the |
@SpaceK33z thanks! Realize we need another feature, which is augmenting the watcher ignore from without app settings. While plugins can do this, user should be able to drop in augment as needed. E.g. we don't have a nextjs plugin for nexus yet. |
@jasonkuhrt thanks for your comment. I not only have it with files in |
I'm pretty sure I found a fix! Pls test out #1183! |
Co-authored-by: Jason Kuhrt <jasonkuhrt@me.com> closes #731
Perceived Problem
Some Git clients like GitKraken auto refetch your repo.
This causes the watcher to randomly restart while GitKraken is open.
● nexus:dev:watcher restarting -- type: 'add' file: '.git/FETCH_HEAD'
Ideas / Proposed Solution(s)
Blacklist .git folder or possibly only .git/FETCH_HEAD if changes in .git are desired to be watched
The text was updated successfully, but these errors were encountered: