Skip to content

fix(web): add the pinned prettier deps to web/app's lockfile - #12288

Merged
undivisible merged 1 commit into
BasedHardware:mainfrom
aryanorastar:fix/web-app-bun-lockfile
Aug 27, 2026
Merged

fix(web): add the pinned prettier deps to web/app's lockfile#12288
undivisible merged 1 commit into
BasedHardware:mainfrom
aryanorastar:fix/web-app-bun-lockfile

Conversation

@aryanorastar

@aryanorastar aryanorastar commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What changed and why

64db30c791 ("fix(web): pin prettier and tighten pre-commit toolchain resolution") added two dev deps to web/app/package.json without regenerating web/app/bun.lock:

+    "prettier": "^2.8.8",
+    "prettier-plugin-tailwindcss": "^0.3.0",

web/app/test.sh installs with a frozen lockfile, so it fails:

error: lockfile had changes, but lockfile is frozen
note: try re-running without --frozen-lockfile and commit the updated lockfile

That is the web-app-checks manifest entry, which triggers on web/app/src/**, web/app/package.json, web/app/bun.lock, and friends. So every PR touching web/app/src/** inherits a red Hygiene and Build, regardless of what it changed.

It surfaced on #12262, whose only web-side change is a regenerated omiApi.generated.ts client. Other open PRs are green purely because none of them happen to trip the trigger paths — this is latent, not rare.

Reproduction

Pristine checkout of main, no branch involved:

mkdir -p /tmp/mainweb
git archive origin/main web/app | tar -x -C /tmp/mainweb
cd /tmp/mainweb/web/app && bun install --frozen-lockfile

Reproduces on ed5a6fc42c.

web/admin/package.json took an edit in the same commit, but its lockfile already resolves — I checked it separately (790 packages installed, no error), so this is scoped to web/app alone.

The fix

A plain bun install, committing the result. The diff is the two declared deps and their resolution entries — six lines, no transitive drift:

+    "prettier": "^2.8.8",
+    "prettier-plugin-tailwindcss": "^0.3.0",
+    "prettier": ["prettier@2.8.8", ...]
+    "prettier-plugin-tailwindcss": ["prettier-plugin-tailwindcss@0.3.0", ...]

Verification

  • bun install --frozen-lockfile against a cleared node_modules — succeeds (was the failure above).
  • bash web/app/test.sh66 files, 394 tests, 0 failures.
  • Node pinned to 22.23.1 for both; on the default Node 26 the vitest suite fails unrelatedly on localStorage.

Failure-Class: none

Review in cubic

64db30c added prettier and prettier-plugin-tailwindcss to
web/app/package.json without regenerating web/app/bun.lock, so
`bun install --frozen-lockfile` fails on main:

    error: lockfile had changes, but lockfile is frozen
    note: try re-running without --frozen-lockfile and commit the updated lockfile

web/app/test.sh installs with a frozen lockfile, so the web-app-checks manifest
entry fails for every PR that touches web/app/src/** -- it surfaced on BasedHardware#12262,
whose only web change is a regenerated omiApi.generated.ts client. Other open
PRs are green because none of them trip the trigger paths.

Reproduces on a pristine checkout of main with no branch involved:

    mkdir -p /tmp/mainweb
    git archive origin/main web/app | tar -x -C /tmp/mainweb
    cd /tmp/mainweb/web/app && bun install --frozen-lockfile

web/admin took the same package.json edit in that commit but its lockfile
already resolves, so this is scoped to web/app.

Regenerated with a plain `bun install`. The diff is the two declared deps and
their resolution entries, six lines, no transitive drift:

    +    "prettier": "^2.8.8",
    +    "prettier-plugin-tailwindcss": "^0.3.0",
    +    "prettier": ["prettier@2.8.8", ...]
    +    "prettier-plugin-tailwindcss": ["prettier-plugin-tailwindcss@0.3.0", ...]

Verified: `bun install --frozen-lockfile` succeeds against a cleared
node_modules, and `bash web/app/test.sh` passes 66 files / 394 tests.

Failure-Class: none
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@undivisible

Copy link
Copy Markdown
Collaborator

ty bro

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.

2 participants