Fix hang when crawling root with direct symlinks#137
Fix hang when crawling root with direct symlinks#137thecodrr merged 4 commits intothecodrr:masterfrom
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.