Skip to content

Fix: synchronize Bun lockfile with optional dependencies - #490

Open
chirag127 wants to merge 1 commit into
winfunc:mainfrom
chirag127:fix/sync-bun-lock
Open

chirag127 wants to merge 1 commit into
winfunc:mainfrom
chirag127:fix/sync-bun-lock

Conversation

@chirag127

Copy link
Copy Markdown

Problem

At c24004d, package.json declares optional dependencies on @esbuild/linux-x64 and @rollup/rollup-linux-x64-gnu, but the root workspace in bun.lock does not. A frozen install fails with:

error: lockfile had changes, but lockfile is frozen
note: dependencies in package.json changed since bun.lock was saved: @esbuild/linux-x64 was added

Change

Regenerate bun.lock with Bun 1.4.5 to record both optional dependencies. The existing transitive esbuild 0.25.5 and Rollup 4.43.0 binaries remain separately locked; the direct optional dependencies resolve within their declared ranges. No manifest or application-code changes.

Verification

On Windows x64 using Bun 1.4.5, fresh isolated fixtures contained the same upstream package.json and either the original or repaired lockfile. Each ran:

bun install --cwd=<fixture> --frozen-lockfile --offline --ignore-scripts --no-env-file --no-progress
  • Original lock: exit 1 with the frozen-lock mismatch above.
  • Repaired lock: exit 0, 407 packages installed.
  • Both fixture lockfiles remained unchanged.
  • Repaired lock Git blob: a72af35b8091ac1d652d4edabc39cbc9bc0d3bcc.

Scope and limitations

This verifies frozen dependency installation on Windows, not Linux native-binary execution. Lifecycle scripts were disabled in the isolated check. The desktop build and manual GUI test could not complete because the local managed endpoint blocked generated Rust build-script execution; this PR does not claim to fix that separate environment restriction.

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