Files
Martin Vogel 154aba0062 fix(workspace): do not follow links in the path-alias config walk
find_alias_files descended into every entry whose is_dir flag was set.
On Windows that flag is also set for a directory junction and a directory
symbolic link, so the tsconfig/jsconfig walk could leave the repository
through a link. Discovery and the incremental walker already skip links
(safe_stat, cbm_path_info_utf8().is_symlink); the alias walk now does the
same on every platform, and skips a child whose metadata cannot be read.

On POSIX the walk already stopped at links because readdir reports them
as DT_LNK rather than DT_DIR; the symbolic-link test pins that contract.
The junction test (cmd.exe mklink /J, no privilege needed) is the case
that changes and is compiled on Windows only.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-02 05:34:41 +02:00
..