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

Symlinks are always watched ignoring matching pattern and followSymlinks option #967

Closed
ClassicOldSong opened this issue Jan 4, 2020 · 1 comment

Comments

@ClassicOldSong
Copy link

ClassicOldSong commented Jan 4, 2020

Describe the bug

Symlinks are always watched ignoring matching pattern and followSymlinks option.

Versions (please complete the following information):

  • Chokidar version 3.3.1
  • Node version v12.12.0
  • OS version: MacOS 10.15

To Reproduce:

Create a file named test.aaa
Create a file named test.bbb
Create a symlink to test.bbb named test.ccc

const chokidar = require('chokidar')

const watcher = chokidar.watch('**/*.aaa')

const log = console.log.bind(console)

watcher
  .on('add', path => log(`File ${path} has been added`))
  .on('change', path => log(`File ${path} has been changed`))
  .on('unlink', path => log(`File ${path} has been removed`))

Expected behavior
Only test.aaa should be watched, but test.ccc is watched as well.

Additional context
Project: https://github.com/TheNeuronProject/ef.qt
Related code: https://github.com/TheNeuronProject/ef.qt/blob/master/watcher.js#L113
When project includes symlinks, they are no matter how watched and caused issue on code compiling .

@paulmillr
Copy link
Owner

The backlog is going to start from zero as a preparation for v4 release. v4 would bring massive rewrite to the table and drop most dependencies. All issues are being closed as preparation for v4 release.

In the future, only issues with enough community support would be considered.

See issue 1195 for more info. Thank you.

Repository owner locked and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants