Skip to content

Keep bun.lock at format 1 for Dependabot - #21

Merged
PeterHewat merged 1 commit into
mainfrom
bun-lockfile-v1
Oct 4, 2026
Merged

PeterHewat merged 1 commit into
mainfrom
bun-lockfile-v1

Conversation

@PeterHewat

Copy link
Copy Markdown
Owner

What changed

bun.lock goes from lockfileVersion 2 to 1. Dependabot's Bun updater only reads format 1, so its package updates were failing with "Unsupported bun.lock 'lockfileVersion' 2".

Bun 1.4.2 installs from a format-1 lockfile, including --frozen-lockfile in CI, and keeps format 1 when packages are added or updated. Nothing else in the lockfile changes.

Checks

  • bun install --frozen-lockfile passes locally

🤖 Generated with Claude Code

Bun 1.4 writes new lockfiles in format 2, which Dependabot's Bun
updater cannot parse yet (it reads up to format 1), so its npm updates
failed. Bun 1.4 installs from format 1 and keeps it when packages
change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PeterHewat
PeterHewat merged commit 3f5334b into main Oct 4, 2026
4 checks passed
@PeterHewat
PeterHewat deleted the bun-lockfile-v1 branch October 4, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant