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
Description
I ran into this while preparing a PR from the Nix development shell.
package.jsoncurrently requires Bun 1.3.14, butnix developprovides Bun 1.3.13. As a result, the pre-push hook fails before running the checks:The Nix dev shell should provide a Bun version compatible with the repository's
packageManagerrequirement.Plugins
None
OpenCode version
dev at 20a7743
Steps to reproduce
From the repository root, run:
nix develop grep '"packageManager"' package.json bun --version git pushScreenshot and/or share link
Operating System
NixOS 26.11 (Zokor)
Terminal
Wezterm