Skip to content

Nix dev shell provides an older Bun version than required by package.json #47332

Description

@harukz

Description

I ran into this while preparing a PR from the Nix development shell.

package.json currently requires Bun 1.3.14, but nix develop provides Bun 1.3.13. As a result, the pre-push hook fails before running the checks:

error: This script requires bun@^1.3.14, but you are using bun@1.3.13

The Nix dev shell should provide a Bun version compatible with the repository's packageManager requirement.

Plugins

None

OpenCode version

dev at 20a7743

Steps to reproduce

From the repository root, run:

nix develop
grep '"packageManager"' package.json
bun --version
git push

Screenshot and/or share link

> grep '"packageManager"' package.json
"packageManager": "bun@1.3.14",

> bun --version
1.3.13

> git push
error: This script requires bun@^1.3.14, but you are using bun@1.3.13
husky - pre-push script failed (code 1)

Operating System

NixOS 26.11 (Zokor)

Terminal

Wezterm

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions