Open
Description
What version of Bun is running?
1.2.10+db2e7d7f7
What platform is your computer?
Darwin 24.4.0 arm64 arm
What steps can reproduce the bug?
We are experiencing a regression of #16692 in 1.2.10:
- I have a typescript monorepo with multiple workspaces
- Installing locally (Darwin arm64) gives me a bun.lock file
- Then trying to install in CI with --frozen-lockfile yields:
bun install v1.2.10 (db2e7d7f)
error: lockfile had changes, but lockfile is frozen
note: try re-running without --frozen-lockfile and commit the updated lockfile
(Potentially due to CI being linux/x64 and locally being installed on dawin/arm64?)
What is the expected behavior?
I expect identical behaviour to npm ci
:
Lockfile just installs exactely the versions in the lock file, potentially adding architecture-specific optionalDependencies
What do you see instead?
bun install v1.2.10 (db2e7d7f)
error: lockfile had changes, but lockfile is frozen
note: try re-running without --frozen-lockfile and commit the updated lockfile
Additional information
- For compatibility, some packages still have
@swc/core
, which has a specific package for each specific architecture.