From 0ec808298b33d9b35999a26f99f61c08cdbf3f9c Mon Sep 17 00:00:00 2001 From: ScreenTinker Date: Tue, 18 Aug 2026 20:22:15 -0500 Subject: [PATCH] Stop a self-referential node_modules symlink breaking the payload build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `server/node_modules` was tracked as a SYMLINK to its own absolute path: 120000 blob ... server/node_modules -> /home/owner/Downloads/remote_display/server/node_modules It came in with the #283 merge. Any attempt to resolve it is an ELOOP, so the payload build died at the staging step with cp: cannot stat 'server/node_modules': Too many levels of symbolic links and a fresh checkout gets a server/ whose dependencies cannot resolve at all. .gitignore only had `node_modules/`, and a trailing slash matches DIRECTORIES — which is exactly how a symlink of that name slipped past it. Both forms are listed now, so the same mistake cannot be committed again. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_014kfhrUPit5MCqxeTQyqr56 --- .gitignore | 5 +++++ server/node_modules | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) delete mode 120000 server/node_modules diff --git a/.gitignore b/.gitignore index 12b7fcb..fc9b96f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,10 @@ # Dependencies node_modules/ +# No trailing slash as well: `node_modules/` matches DIRECTORIES only, so a SYMLINK named +# node_modules is not ignored by it. That is not hypothetical - an absolute, self-referential +# `server/node_modules -> /home/.../server/node_modules` was committed in the #283 merge and broke +# the payload build with "cp: Too many levels of symbolic links". +node_modules # Databases: SQLite files, WAL/SHM sidecars, and any .db. backups # (e.g. .db.devbak), anywhere in the tree - never commit a database. diff --git a/server/node_modules b/server/node_modules deleted file mode 120000 index 743a1d3..0000000 --- a/server/node_modules +++ /dev/null @@ -1 +0,0 @@ -/home/owner/Downloads/remote_display/server/node_modules \ No newline at end of file