Skip to content

Build failure: Bun version mismatch (expects 1.3.5, system has 1.3.6) #9583

@MBanucu

Description

@MBanucu

The NixOS build fails with a Bun version check error.

Full error log:

Using versionCheckHook
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/6fxp8p37c292692r01favj5lk4a0npyi-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
 8 | if (!expectedBunVersion) {
 9 |   throw new Error("packageManager field not found in root package.json")
10 | }
11 | 

12 | if (process.versions.bun !== expectedBunVersion) {
13 |   throw new Error(\`This script requires bun@\${expectedBunVersion}, but you are using bun@\${process.versions.bun}\`)
                 ^
error: This script requires bun@1.3.5, but you are using bun@1.3.6
       at /build/source/packages/script/src/index.ts:13:13

Bun v1.3.6 (Linux x64)

This occurs during sudo nixos-rebuild switch --flake . on NixOS.

System: NixOS 25.11.20260118.77ef7a2

The script in packages/script/src/index.ts checks for exact Bun version 1.3.5, but Nix provides 1.3.6.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions