Skip to content

Commit 23c9852

Browse files
committed
Fix CI: stale override in bun.lock, and pin the Bun version
CI was failing on `bun install --frozen-lockfile`: error: lockfile had changes, but lockfile is frozen note: overrides in package.json changed since bun.lock was saved My fault, from the djsx removal. That commit dropped `"overrides": {"react": "./djsx/index.ts"}` from package.json but bun.lock still recorded it. Bun 1.3.11, which I had locally, accepted the mismatch under --frozen-lockfile, so the clean-install check I ran passed. Bun 1.4.0, which CI resolved from `bun-version: latest`, rejects it. Regenerated bun.lock so its overrides block matches package.json. Reproduced the exact failure on 1.4.0 first, then confirmed a clean `bun install --frozen-lockfile` succeeds. Also pinned the workflow to bun-version "1.4.0" instead of `latest`. The lockfile format is version sensitive, and a Bun release landing upstream should not be able to break CI on an unrelated commit. Bumping it is now a deliberate change with its own diff. Verified on 1.4.0: frozen install, typecheck and lint all pass from an empty node_modules. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015hDX4g1EjTN7424A5wnptE
1 parent 63a0d17 commit 23c9852

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ jobs:
1515

1616
- uses: oven-sh/setup-bun@v2
1717
with:
18-
bun-version: latest
18+
# Pinned rather than `latest`: the lockfile format is version
19+
# sensitive, and a new Bun landing upstream should not be able to
20+
# break CI on an unrelated commit. Bump deliberately.
21+
bun-version: "1.4.0"
1922

2023
- name: Install dependencies
2124
run: bun install --frozen-lockfile

bun.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)