Skip to content

Release bumps leave bun.lock's workspace version behind package.json #2247

Closed

Description

@nc9

Problem

Release bumps change the CLI version in apps/cli/package.json and npm/package.json but leave the root bun.lock workspace entry behind. Public main has "apps/cli": { "version": "0.0.190-beta.1" } in bun.lock, while apps/cli/package.json says 0.0.190 (the stable bump, #2241; the beta.2 bump didn't move it either).

bun install --frozen-lockfile (Bun 1.4.4) doesn't compare workspace version fields, so nothing catches the drift. The first unrelated change whose author runs a plain bun install then picks up a stray bun.lock hunk. That happened in docs PR #2246, where the hunk was removed by hand. A lockfile change inside an unrelated PR is noise for review and looks like a dependency change.

Expected

A release bump leaves bun.lock agreeing with every workspace package.json version it changed. A bump that leaves them disagreeing fails before it can merge.

Acceptance Criteria

  • The release bump tooling (scripts/release.ts or the bump workflow it drives) updates the bun.lock workspace version for every package whose version it bumps, in the same commit as the package.json changes.
  • A check in the bump tooling fails, naming the package and both versions, when a workspace package.json version and its bun.lock entry disagree. A test covers a disagreeing pair (fails) and an agreeing pair (passes).
  • After the next release bump, bun.lock on main lists apps/cli at the released version, and a plain bun install on a clean main checkout leaves bun.lock unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    chorecisize: XS

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions