Skip to content
This repository was archived by the owner on Jul 24, 2026. It is now read-only.

fix(nix): regenerate npmDepsHash against main's package-lock.json - #105

Merged
schickling merged 1 commit into
mainfrom
schickling-assistant/2026-07-20-flake-npmdeps-fix
Jul 20, 2026
Merged

fix(nix): regenerate npmDepsHash against main's package-lock.json#105
schickling merged 1 commit into
mainfrom
schickling-assistant/2026-07-20-flake-npmdeps-fix

Conversation

@schickling-assistant

@schickling-assistant schickling-assistant commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

What

Regenerate the flake's npmDepsHash so it matches the package-lock.json actually on main.

Why

main's Nix workflow has been red since #104 merged, and the cause is a merge-order accident rather than anything wrong with #104 itself:

Run 29775629348 (the push build of the #104 merge commit) fails with ERROR: npmDepsHash is out of date.

How

Regenerated with the command the flake itself documents:

nix run nixpkgs#prefetch-npm-deps -- package-lock.json

sha256-CfgSssHEdSjL9liKjaw9aYKMtCJdaxWKGbFM59PgNwg=sha256-FsAjO/CYxyMf30F8ESsxFDI30ckYv1uS4+nkvn9Fl+k=

No hand-authored hash: the value is measured from the real lock file.

Verification actually run

Locally, on this branch:

  • nix build .#default — succeeds
  • nix flake check — passes all three checks: help, completions, typecheck

Note

This also unblocks compoundingtech/convoy, whose own flake takes smalltalk as an input and currently cannot build against a red smalltalk main.

PR #104 added the flake with an npmDepsHash computed against the
package-lock.json on its own branch. Meanwhile 12a4772 ("sync stale
package-lock.json to package.json (0.3.0)") landed on main and changed
that lock. The merge of #104 combined the new flake with main's newer
lock, so the hash was stale from the moment it landed -- a semantic
conflict a text-level merge cannot see. main's Nix workflow has been red
on the merge commit (run 29775629348) ever since.

Regenerated with the command the flake itself documents:
  nix run nixpkgs#prefetch-npm-deps -- package-lock.json

Verified locally: `nix build .#default` succeeds and `nix flake check`
passes all three checks (help, completions, typecheck).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T1xLDkqUDCYUMMADdMqVgP
agent-session-id: 312caff5-3274-4d97-baa4-8ff06ab03fc5
agent-tool: Claude Code
agent-tool-version: 2.1.215
agent-model: claude-opus-4-8
agent-runtime-profile: /nix/store/acr8a3l2v366jgmwiq8xdrhgz1py0db5-coding-agent-runtime-profile/share/coding-agents/profile.json
agent-skills-manifest: /nix/store/sj1v5j91h8v8d1w9lca4040302lwrd6v-agent-skills-corpus/share/agent-skills/manifest.json
tooling-profile: dotfiles@unknown-dirty
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants