error: lockfile had changes, but lockfile is frozen
envgap__oven-sh__bun-5792
Original GitHub issue ↗Opened 2023-09-20
01 / FAILURE SIGNATURE
As reported upstream
I am using below command inside a docker image and it is failing with error - error: lockfile had changes, but lockfile is frozen
Not a benchmark task.
- No curated issue-specific recipe or verified environment fix is available.
02 / ENVIRONMENT RECIPE
- Base commit
Not freshly verified- Manifest
package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
oven-sh/bun #5792 · read the original issue
### What version of Bun is running? 1.0.2 ### What platform is your computer? Darwin 22.6.0 arm64 arm ### What steps can reproduce the bug? I am using below command inside a docker image and it is failing with error - error: lockfile had changes, but lockfile is frozen `bun install --production` - Initially everything was working as expected - I updated one of the packages - and after that tried to build the docker image again. I am using bun as a package manager. node version - 18.16.0the ### What is the expected behavior? should install packages without any issues. ### What do you see instead? ``` => ERROR [stage-1 6/8] RUN bun install --production 0.2s ------ > [stage-1 6/8] RUN bun install --production: 0.209 bun install v1.0.2 (37edd5a6) 0.211 error: lockfile had changes, but lockfile is frozen ------ Dockerfile:24 -------------------- 22 | COPY package.json bun.lockb .env.dev firebase-dev-admin.json ./ 23 | RUN npm install -g bun 24 | >>> RUN bun install --production 25 | 26 | # cleanup -------------------- ERROR: failed to solve: process "/bin/sh -c bun install --production" did not complete successfully: exit code: 1 ``` ### Additional information I tried using `frozen-lockfile` flag as well, with no help ``` => ERROR [stage-1 6/8] RUN bun install --production --frozen-lockfile 0.3s ------ > [stage-1 6/8] RUN bun install --production --frozen-lockfile:
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]
Issue-specific recipe and runtime smoke command require review against the complete issue and repository.
Legacy already_works is install-only; proposed control still requires runtime verification.