Skip to content

fix(nix): refresh hermes-web npm-deps hash#17133

Closed
ak2k wants to merge 1 commit into
NousResearch:mainfrom
ak2k:fix/web-npm-deps-hash
Closed

fix(nix): refresh hermes-web npm-deps hash#17133
ak2k wants to merge 1 commit into
NousResearch:mainfrom
ak2k:fix/web-npm-deps-hash

Conversation

@ak2k

@ak2k ak2k commented Apr 28, 2026

Copy link
Copy Markdown

Summary

The hash currently checked into nix/web.nix (sha256-AahWmJ9gDQ9pMPa1FYwUjYdO2mOi6JM9Mst27E0vp68=) doesn't match what fetchNpmDeps actually produces from web/package-lock.json. Builds on nixos-unstable-tracking consumers fail with:

error: hash mismatch in fixed-output derivation '.../npm-deps.drv':
         specified: sha256-AahWmJ9gDQ9pMPa1FYwUjYdO2mOi6JM9Mst27E0vp68=
            got:    sha256-+B2+Fe4djPzHHcUXRx+m0cuyaopAhW0PcHsMgYfV5VE=

The hash-refresh bot last ran at f62272b (Apr 28); since then the hash has drifted. This is the mechanical fix the bot would otherwise produce — recomputed via:

nix build .#web 2>&1 | grep got:

Reproduced on x86_64-linux against inputs.hermes-agent.inputs.nixpkgs (NixOS/nixpkgs@6201e203, the rev pinned in flake.lock), so this isn't a consumer-side nixpkgs drift.

Test plan

  • nix build .#web succeeds with new hash
  • hermes-agent default package builds end-to-end (since web is a build-time dep of the agent closure)

The hash currently checked into nix/web.nix doesn't match what
fetchNpmDeps actually produces from web/package-lock.json. The
hash-refresh bot last ran at f62272b (2026-04-28); since then
the hash has drifted.

This is the same kind of mechanical bump the bot does — hash
recomputed via:

    nix build .#web 2>&1 | grep got:
@alt-glitch alt-glitch added type/bug Something isn't working P1 High — major feature broken, no workaround area/nix Nix flake, NixOS module, container packaging comp/agent Core agent loop, run_agent.py, prompt builder labels Apr 28, 2026
@OutThisLife

Copy link
Copy Markdown
Collaborator

Hey @ak2k — I missed this PR and opened a duplicate at #17174 a couple hours later. Sorry for the overlap.

Closing this in favor of #17174 because mine bundles a related script fix:

When I rebased my open PRs onto main, every one of them hit the same broken nix-lockfile-check that's now red here too. Root cause is independent of the hash: the fix-lockfiles script in nix/lib.nix falls over when GitHub's Magic Nix Cache rate-limits mid-run (HTTP 418 → some outputs of '/nix/store/...-npm-deps.drv' are not valid, so checking is not possible), because it can't extract a got: line and bails with build failed with no hash mismatch. So even with the correct hash committed, the auxiliary lint stays red whenever GH cache throttles — which is most runs right now.

#17174 ships:

  1. The same hash refresh you have here (Aah…+B2…).
  2. A guard in fix-lockfiles that recognizes throttling/cache-disabled signatures and skips the entry with a warning instead of failing the lint. Real stale hashes still surface in the primary nix (ubuntu-latest) build, so coverage is preserved.

If you'd rather take the hash-only path through your branch and leave the script fix for later, happy to flip it the other way — just let me know. Otherwise I'll close this one out.

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

Labels

area/nix Nix flake, NixOS module, container packaging comp/agent Core agent loop, run_agent.py, prompt builder P1 High — major feature broken, no workaround type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants