From 0262af6f077921afbfea147d5189ea52ded16bac Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Tue, 16 Jun 2026 13:32:00 -0300 Subject: [PATCH] fix(repo): untrack accidentally-committed root node_modules symlink + gitignore it A worktree node_modules symlink (-> the main checkout's node_modules) was staged by a `git add -A` during the #3988 merge and committed into 05213ac6a. The symlink points at the repo's own node_modules path, so checking it out turns the main checkout's node_modules into a self-referential symlink (breaking tsx/all node ops). Untrack it and add a root-anchored /node_modules ignore so the symlink form can't be re-committed (the existing 'node_modules/' only matches directories). --- .gitignore | 4 ++++ node_modules | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) delete mode 120000 node_modules diff --git a/.gitignore b/.gitignore index de10d077d2..82431a3290 100644 --- a/.gitignore +++ b/.gitignore @@ -49,6 +49,10 @@ docs/new-features/ # dependencies node_modules/ +# Also ignore a root node_modules SYMLINK (worktree setups symlink it from the main +# checkout). The trailing-slash pattern above only matches a directory, so without this +# a symlink named node_modules could be staged by `git add -A` and committed. +/node_modules *.map .DS_Store diff --git a/node_modules b/node_modules deleted file mode 120000 index d6af08994d..0000000000 --- a/node_modules +++ /dev/null @@ -1 +0,0 @@ -/home/diegosouzapw/dev/proxys/OmniRoute/node_modules \ No newline at end of file