Skip to content

Build failure: opencode #582673

Closed
Closed

Description

@maximizeIT

Nixpkgs version

  • Unstable (26.11)

Steps to reproduce

  1. nix build github:NixOS/nixpkgs/f9887a8a434bfba06e20dfc77bc8e0628266af84#opencode (current nixpkgs-unstable, opencode 2.2.5)
  2. The fixed-output derivation opencode-node_modules-2.2.5 fails with a hash mismatch.

Can Hydra reproduce this build failure?

I don't know, but there is no cached opencode-2.2.5 on cache.nixos.org for aarch64-darwin, aarch64-linux or x86_64-linux, while 2.2.1 is cached.

Link to Hydra build job

No response

Relevant log output

error: hash mismatch in fixed-output derivation '/nix/store/binknfnrq9y1fp0sswd0sk8xla77ff4f-opencode-node_modules-2.2.5.drv':
         specified: sha256-xfOVcw1+waLVNhFDwzOtzxrUSQEogvn88YomydOlhwc=
            got:    sha256-dIveiaiPFGSItwLyeMuPDxTE9gpvvnlTCB/+nG24qCc=
error: Cannot build '/nix/store/z4fx228m0vsh1kbj7jf51wlfspbgcjwc-opencode-2.2.5.drv'.
       Reason: 1 dependency failed.

Additional context

The outputHash was set in #581607 (opencode 2.2.1 -> 2.2.5, merged 2 Nov 08:51 UTC). Possibly related: node_modules is produced by bun install, and #577354 (bun 1.4.2 -> 1.4.4) was merged a few hours later (2 Nov 11:34 UTC), so the hash may have been computed with the previous bun. I haven't verified that.

The derivation uses a single hash for all platforms (bun install --os=*), so updating outputHash to the "got" value above may be enough, but I could only test on aarch64-darwin.

System metadata

  • system: "aarch64-darwin"
  • host os: Darwin 27.2.0, macOS 27.2
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Determinate Nix 3.22.3) 2.35.2

Notify maintainers

@delafthi @DuskyElf @graham33 @xiaoxiangmoe

I assert that this issue is relevant for Nixpkgs

  • I assert that this is a bug and not a support request.
  • I assert that this is not a duplicate of an existing issue.
  • I assert that I have read the NixOS Code of Conduct and agree to abide by it.

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. GaetanLepage commented on Nov 3, 2026

    @GaetanLepage
    Contributor

    I opened #582675, but when trying to repro, I didn't get the same hash as you:

    error: hash mismatch in fixed-output derivation '/nix/store/21skk8sq4hdchfh35p49gfs5j7r7b75y-opencode-node_modules-2.2.5.drv':
             specified: sha256-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaY=
                got:    sha256-prx9dX7kUvs/E3zopkaPk5LXh3xJAy5sZeum/W8L7cA=
    
  2. Sejder commented on Nov 3, 2026

    @Sejder
    Contributor

    Reproduced on x86_64-linux (Nix 2.34.9, bun 1.4.4) at f9887a8:
    error: hash mismatch in fixed-output derivation '/nix/store/kfdz406fa44wmh8bgiq2d7nnbxa19f0f-opencode-node_modules-2.2.5.drv':
    specified: sha256-xfOVcw1+waLVNhFDwzOtzxrUSQEogvn88YomydOlhwc=
    got: sha256-prx9dX7kUvs/E3zopkaPk5LXh3xJAy5sZeum/W8L7cA=

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions