Skip to content

install.sh: add bun >= 1.2 version check — v6 bun.lock format fails on older system bun with confusing error #1395

Description

@badosanjos

Summary

The v6.0.0 bun.lock files use the newer lockfile format that requires bun >= 1.2. install.sh checks that some bun exists (and auto-installs latest when absent) but accepts any pre-existing bun. With a system bun 1.1.x present, the bootstrap succeeds and everything appears fine until the Pulse dashboard build, which fails with:

error: Unknown lockfile version
    at bun.lock:2:22
InvalidLockfileVersion: failed to parse lockfile: 'bun.lock'

Suggestion

In install.sh prereqs, check bun --version against a minimum (>=1.2) and offer the same auto-install path used when bun is absent. Cheap check, saves a confusing failure much later in setup.

Environment

Ubuntu 24.04 with system bun 1.1.42; fixed locally by installing current bun per-user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions