oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.35k stars 2.78k forks source link

bun --frozen-lockfile shows error without explanation when version mismatch #15288

Open bitboxer opened 1 day ago

bitboxer commented 1 day ago

What version of Bun is running?

1.1.36+ededc168c

What platform is your computer?

Darwin 23.6.0 arm64 arm

What steps can reproduce the bug?

Have a bun lock file that was created with an older version of bun, run bun install --frozen-lockfile. Bun will now say:

error: lockfile had changes, but lockfile is frozen

Sadly there is no way to understand why this is wrong. The only difference is the version of bun, which must have been written in the lockfile.

What is the expected behavior?

bun should say an error message that it used a different version of bun to create the file and say which version it was.

What do you see instead?

A unclear error message.

Additional information

No response