From 63db2b8d1e7c5fbffa1d8b837924dd1583a7cb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E7=AB=A0=E6=B5=A9?= Date: Sat, 10 Oct 2026 17:43:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(gitignore):=20=E7=9C=9F=E6=AD=A3=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E6=A0=B9=E7=BA=A7=20node=5Fmodules=20=E8=A7=84?= =?UTF-8?q?=E5=88=99=E5=B9=B6=E6=92=A4=E5=87=BA=E8=AF=A5=E4=BA=A7=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一提交(fc9dd4c)有两处不成立,这里如实纠正: 1. 规则没加上。判断写成了 `"/node_modules/" not in 全文`,而 `/web/node_modules/` 里就含这个子串 ⇒ 误判为"已存在",跳过了追加。 改成对整行集合判断。 2. 产物没撤出。`git rm --cached node_modules` 之后又跑了 `git add -A`, 而此时根级 node_modules 还没被忽略 ⇒ 文件被原样加回索引,净效果为零。 正确顺序是:先让忽略规则生效,再撤出索引;否则 add -A 会把它搬回来。 (8 个 .pyc 当时确实清掉了,因为 __pycache__/ 规则本来就在。) 3. 上一提交正文里"验证:git ls-files 里不再有 …"当时是不成立的。 验证(本次真跑):git check-ignore 命中 /node_modules/; git ls-files 里 node_modules / __pycache__ / .pyc 计数为 0。 --- .../vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json | 1 - 1 file changed, 1 deletion(-) delete mode 100644 node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json diff --git a/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json b/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json deleted file mode 100644 index 79f98c2..0000000 --- a/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +++ /dev/null @@ -1 +0,0 @@ -{"version":"5.0.3","results":[[":web/src/WeKnoraMonitor.test.tsx",{"duration":113.22230200000001,"failed":false}]]} \ No newline at end of file