Description
nix build github:anomalyco/opencode/v1.17.11#default fails in the node_modules derivation:
> bun install v1.3.13
> error: lockfile had changes, but lockfile is frozen
The node_modules.nix derivation runs bun install --frozen-lockfile, but the bun.lock is stale vs package.json on the v1.17.11 tag. PR #33166 added a postPatch in nix/opencode.nix to soften the bun version check, but the node_modules derivation runs before that patch and fails first.
The dev branch already builds fine — the lockfile was regenerated at some point after the tag was cut. This is specific to the v1.17.11 release tag.
OpenCode version
v1.17.11
Steps to reproduce
nix build github:anomalyco/opencode/v1.17.11#default --no-link
Expected: builds successfully. Actual: fails with lockfile had changes, but lockfile is frozen.
Plugins
N/A
Operating System
macOS (aarch64) — also reproducible on Linux x64
Terminal
N/A
Tagging @jerome-benoit since you've been driving Nix fixes. The bun version check patch in #33166 was helpful but doesn't cover this case since the stale lockfile error is in node_modules.nix before opencode.nix's postPatch runs. Would a v1.17.12 tag with a regenerated bun.lock be possible?
Description
nix build github:anomalyco/opencode/v1.17.11#defaultfails in thenode_modulesderivation:The
node_modules.nixderivation runsbun install --frozen-lockfile, but thebun.lockis stale vspackage.jsonon the v1.17.11 tag. PR #33166 added apostPatchinnix/opencode.nixto soften the bun version check, but thenode_modulesderivation runs before that patch and fails first.The
devbranch already builds fine — the lockfile was regenerated at some point after the tag was cut. This is specific to the v1.17.11 release tag.OpenCode version
v1.17.11
Steps to reproduce
Expected: builds successfully. Actual: fails with
lockfile had changes, but lockfile is frozen.Plugins
N/A
Operating System
macOS (aarch64) — also reproducible on Linux x64
Terminal
N/A
Tagging @jerome-benoit since you've been driving Nix fixes. The bun version check patch in #33166 was helpful but doesn't cover this case since the stale lockfile error is in
node_modules.nixbeforeopencode.nix'spostPatchruns. Would a v1.17.12 tag with a regeneratedbun.lockbe possible?