Skip to content

[bun] make --frozen-lockfile optional to workaround error: lockfile had changes, but lockfile is frozen #3157

@jmatsushita

Description

@jmatsushita

Build/Submit details page URL

https://expo.dev/accounts/iilab/projects/iios/builds/054e1c85-95aa-4e59-a66c-51460a23f35b

Summary

It seems that eas defaults to bun install --frozen-lockfile while bun seems to have a number of issues with this command ( oven-sh/bun#20913 oven-sh/bun#19088 ).

Could eas.json allow making --frozen-lockfile optional?

Thanks!

Jun

Managed or bare?

Managed

Environment

expo-env-info 1.3.4 environment info:
System:
OS: macOS 15.6.1
Shell: 5.9 - /nix/store/6hf7mz56ghwfrnyknhplwmx39kg9gqmg-zsh-5.9/bin/zsh
Binaries:
Node: 22.18.0 - /nix/store/0nlbr3dznz1vcrn8kgwrisdrm9l5zm7k-nodejs-22.18.0/bin/node
Yarn: 1.22.22 - /nix/store/hjcfl6ylmqfr4i5y05aywd0cdr8dki7g-yarn-1.22.22/bin/yarn
npm: 10.9.3 - /nix/store/0nlbr3dznz1vcrn8kgwrisdrm9l5zm7k-nodejs-22.18.0/bin/npm
Watchman: 2025.03.10.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.16.2 - /nix/store/zzsayarspv3jzd5qmg9ldhybgv82nzw0-cocoapods-1.16.2/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.1, iOS 18.1, macOS 15.1, tvOS 18.1, visionOS 2.1, watchOS 11.1
IDEs:
Xcode: 16.1/16B40 - /usr/bin/xcodebuild
Expo Workflow: managed

Error output

We detected that 'platforms/client' is a bun workspace
Running "bun install --frozen-lockfile" in /Users/expo/workingdir/build directory
bun install v1.2.0 (b0c5a765)
Resolving dependencies
Resolved, downloaded and extracted [713]
error: lockfile had changes, but lockfile is frozen
note: try re-running without --frozen-lockfile and commit the updated lockfile
bun install --frozen-lockfile exited with non-zero code: 1

Reproducible demo or steps to reproduce from a blank project

Sorry, but the root cause of the bun install --frozen-lockfile issues are unclear and I don't know how to create a minimal reproducer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reviewIssue is ready to be reviewed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions