[Bug]: Updating opencode@2 to 2.2.5 fails due to hash mismatch

Offen
#3,040 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
go
Bereich
build-system

Rechercherichtung

The failure is a fixed-output hash mismatch raised by Nix while building the opencode node_modules derivation, triggered from devbox global update. Start by finding where Devbox pins the package hash for opencode in its Go code and how it passes the nixpkgs reference into the build. Done means the update path succeeds for 2.2.5, which may require a corrected hash or a change in how the hash is resolved.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug triage
What happened?

Hi, updating opencode@2 to 2.2.5 fails due to hash mismatch (both globally and locally).

  • Devbox: Version 0.19.0
  • Distro: Debian GNU/Linux 13 (trixie)
  • Kernel: Linux 7.1.8+deb13-amd64
Steps to reproduce
  1. devbox global add [email protected]
  2. devbox global update [email protected]
Command

update

devbox.json

Devbox version

0.19.0

Nix version

2.26.3

What system does this bug occur on?

Linux (x86-64)

Debug logs
$ devbox global update opencode@latest
Info: Updating opencode@latest 2.2.1 -> 2.2.5
Info: Installing the following packages to the nix store: opencode@latest
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=
error: 1 dependencies of derivation '/nix/store/3yj9jzx7j7rgphgw3vfgb4llhiv8i5yc-opencode-2.2.5.drv' failed to build
Error: nix: command error: nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' build --impure --no-link --refresh 'github:NixOS/nixpkgs/9a6cbf4722bdbbef65f9e0400452ca088e31dc4b#opencode': exit code 1

Error: There was an internal error. Run with DEVBOX_DEBUG=1 for a detailed error message, and consider reporting it at https://github.com/jetify-com/devbox/issues

(Normal logs, as the debug is quite long and does not show anything special.)

Vorherrschende Sprache
Go
Sterne
12.4k
Forks
358
Ø Merge
16 Std. 9 Min.
Gemergte PRs (30 T.)
31

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus jetify-com/devbox

Alle Issues in jetify-com/devbox

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.