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

Watching a directory doesn't watch nested symlinks when followSymlinks = true #190

Open
ofagbemi opened this issue Apr 21, 2021 · 0 comments

Comments

@ofagbemi
Copy link

ofagbemi commented Apr 21, 2021

Here's a repro: https://github.com/ofagbemi/watchpack-symlinks

If I set followSymlinks: true and pass a path to a real directory with symlinks nested inside, the symlinked files don't get watched. followSymlinks only seems to work if the watched file or a directory itself is a symlink.

const wp = new Watchpack({ followSymlinks: true });

wp.watch({
  files: [
    "file_symlink", // watched correctly
  ],
  directories: [
    "directory_symlink", // real files inside the linked directory are watched correctly
    "real_directory_containing_symlink", // symlink inside of directory isn't watched
  ],
});
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

1 participant