openvibers/openvibe.news Commits

The node_modules symlink is not source (deploy refused with EISDIR) (#270)

OP OpenVibers committed 3 days ago · aeb8ed7edd · 2 files, +1 −2

A worktree's node_modules is a symlink to the shared dependency cache, and
.gitignore's "node_modules/" did not match it, so a commit picked it up. The
deploy refused (EISDIR reading that directory). Remove it from the tree and
ignore "node_modules" whether it is a directory or a link.

Changes

ddiff --git a/.gitignore b/.gitignore
iindex 4c6243c..6313d87 100644
---- a/.gitignore
++++ b/.gitignore
@@@ -1,4 +1,4 @@
--node_modules/
++node_modules
data/
dist/
.env
ddiff --git a/node_modules b/node_modules
ddeleted file mode 120000
iindex 43876dd..0000000
---- a/node_modules
++++ /dev/null
@@@ -1 +0,0 @@
--/home/workstation/.cache/openvibe-deps/OpenVibe.News/87f5afc2a7ca84f2/node_modules
\\ No newline at end of file