Skip to content

Commit 8260891

Browse files
authored
chore(gitignore): ignore the repo-root uploads spill directory (#6089)
UPLOAD_DIR_SERVER is join(process.cwd(), 'uploads'), so it follows the cwd rather than a fixed root. Under turbo run test the cwd is apps/sim and that package's /uploads rule catches it, but running vitest from the repo root writes ~40 uploads/execution/**/large-value-*.json files to a path nothing ignored. Anchored on purpose: an unanchored uploads/ would also match apps/sim/lib/uploads/ (61 tracked source files) and silently ignore anything added there later.
1 parent d67e02f commit 8260891

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,14 @@ i18n.cache
102102
# Python (apps/pii tests/tooling)
103103
__pycache__/
104104
.pytest_cache/
105+
106+
# Local file-upload spill directory. `UPLOAD_DIR_SERVER` is
107+
# `join(process.cwd(), 'uploads')`, so it follows the cwd rather than a fixed
108+
# root: under `turbo run test` the cwd is apps/sim and `apps/sim/.gitignore`'s
109+
# `/uploads` catches it, but running vitest from the repo root drops ~40
110+
# `uploads/execution/**/large-value-*.json` files here instead.
111+
#
112+
# Anchored deliberately. An unanchored `uploads/` would also match
113+
# `apps/sim/lib/uploads/` — 61 files of tracked source — and silently ignore
114+
# anything added there later.
115+
/uploads

0 commit comments

Comments
 (0)