-
Notifications
You must be signed in to change notification settings - Fork 70
Fix hang when crawling root with direct symlinks #137
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
Conversation
|
there's actually a bug here i think. you would've uncovered it if your test asserted anything if you crawl this seems to be because we're checking the i suspect this is a bug and is because we do the edit going to open a standalone issue for this |
Hmm, do you have any steps to reproduce this? I checked locally, and with a minimally mocked filesystem, both async and sync return |
|
More details here: #138 |
|
looks like this made windows ci hang 🤔 |
* fix: add a failing test * fix: don't slice the root when it's the root directory * fix: test both `sync` and `withPromise` properly * chore: revert formatting changes * fix: handle Windows root directories correctly * chore: revert the formatting change * chore: revert the formatting change * chore: re-add the whitespace after the comma * test: add an assertion to the test * chore: revert the formatting change (sorry)
Fixes #135.
The current behavior makes it so that when we're crawling
"/"with some symlinks andresolvePath: false,state.rootis an empty string infdir/src/api/functions/resolve-symlink.ts
Line 75 in e2d5c86
Tests pass locally both on Linux (WSL) and Windows.