tools
tools copied to clipboard
🐛 mulitple symlinks pointing to the same file mistaken as "Infinite symlink expansion"
Environment information
CLI:
Version: 12.0.0
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
ROME_LOG_DIR: unset
NO_COLOR: unset
TERM: "xterm"
JS_RUNTIME_VERSION: "v19.9.0"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "yarn/1.22.19"
Rome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Organize imports disabled: true
Workspace:
Open Documents: 0
What happened?
mkdir -p a/b/{c,d}
touch a/foo.html
ln -s ../../foo.html a/b/c/foo.html
# without the next line everything works fine
ln -s ../../foo.html a/b/d/foo.html
# rome ci fails
yarn run rome ci ./a
Expected result
It should not fail.
Code of Conduct
- [X] I agree to follow Rome's Code of Conduct
related: #4193, #4221
I also just ran into this issue using Rome 12.1.3. Adding the symlinked files to the list of ignored files in the config also doesn't help anymore once there are multiple links to the same file.