anomalyco / anomalyco/opencode

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

Open
#47,332 0 comments 0 reactions 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Sep 4, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.