bun.lock is not ignored and reaches pull requests #34

Closed
opened 2026-08-11 14:18:49 +00:00 by chrnx · 0 comments
Owner

1278 lines of it arrived in https://github.com/Expressive-Tea/green-tea/pull/14, alongside 48 lines of actual change.

Nothing here consumes it. npm run test:bun runs bun test against the node_modules npm installed, which package-lock.json already pins. There is no bun install step in any workflow or script.

deno.lock is tracked and should stay tracked, and the asymmetry is worth writing down in the ignore rule itself, or someone will read it as an inconsistency and "fix" it in six months. The Deno tests import npm: and jsr: specifiers that Deno resolves against registries, so a lockfile is the only thing making them reproducible. Bun resolves the same package.json npm does.

Note that ignoring it does not clean an existing pull request: ignore rules do not apply to already-tracked files, so a contributor who has committed one still needs git rm --cached.

1278 lines of it arrived in https://github.com/Expressive-Tea/green-tea/pull/14, alongside 48 lines of actual change. Nothing here consumes it. `npm run test:bun` runs `bun test` against the `node_modules` npm installed, which `package-lock.json` already pins. There is no `bun install` step in any workflow or script. `deno.lock` is tracked and should stay tracked, and the asymmetry is worth writing down in the ignore rule itself, or someone will read it as an inconsistency and "fix" it in six months. The Deno tests import `npm:` and `jsr:` specifiers that Deno resolves against registries, so a lockfile is the only thing making them reproducible. Bun resolves the same `package.json` npm does. Note that ignoring it does not clean an existing pull request: ignore rules do not apply to already-tracked files, so a contributor who has committed one still needs `git rm --cached`.
chrnx closed this issue 2026-08-11 14:41:05 +00:00
Sign in to join this conversation.