Skip to content

(Regression) bun install --frozen-lockfile keeps reporting issues #19088

Open
@lordphnx

Description

@lordphnx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbun installSomething that relates to the npm-compatible clientregression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions