-
-
Notifications
You must be signed in to change notification settings - Fork 185
packageFilter paths should be realpathed with preserveSymlinks: false #201
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
Comments
Thanks! I'll take a look, but a PR with a test case would be super helpful. |
@ljharb will try to put up a PR, but test cases are really annoying to make when symlinking is involved. Here's how to repro, though: Directory structure like:
cd into project, open a node console, and enter:
|
@bterlson in your example, there's no |
@ljharb yessir, and main files, although that part is probably not necessary to highlight the problem. |
Writing this failing test exposed two more unrelated bugs (#202 covers one of them) that I'll need to test and fix separately :-) This one's coming up shortly tho! |
…alpath the `pkgfile` option Fixes #201.
…alpath the `pkgfile` option Fixes #201.
…alpath the `pkgfile` option - `async`/`sync`: avoid crash when `package.json` does not exist, or `packageFilter` returns a falsy value Fixes #201.
…alpath the `pkgfile` option - `async`/`sync`: avoid crash when `package.json` does not exist, or `packageFilter` returns a falsy value Fixes #201.
…alpath the `pkgfile` option - `async`/`sync`: avoid crash when `package.json` does not exist, or `packageFilter` returns a falsy value Fixes #201.
…alpath the `pkgfile` option - `async`/`sync`: avoid crash when `package.json` does not exist, or `packageFilter` returns a falsy value Fixes #201.
…alpath the `pkgfile` option - `async`/`sync`: avoid crash when `package.json` does not exist, or `packageFilter` returns a falsy value Fixes #201.
Note that this includes a bugfix where |
…alpath the `pkgfile` option Fixes #201.
Right now a package filter is called with potentially symlinked paths.
The text was updated successfully, but these errors were encountered: