fix(nix): refresh the registry pnpmDeps hash #496
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!496
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/registry-pnpm-deps-hash"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
npm-registrydeployments are failing on every attempt — 8 between 17:13 and 18:52 UTC today — becausepnpmDeps.hashinflake.nixno longer matches the lockfile.pnpm-lock.yamlhas changed 7 times since the hash was last set (e836aeb9,531af51b,ca1b6eca,aa59321c,75e68362,fbd880f1,ead1b79a).One line.
The hash was computed, not transcribed
Built
.#registryon hetzner-worker against this exact tree with the hash set to a sentinel, and took what nix reported:That distinction earned its keep: the hash quoted in #491's original description differs from the computed one by a single character —
…KPYVfGFW…vs…KPYVfGFQ…. Pushing that value would have reproduced the identical failure while looking correct.Also verified
pnpm-lock.yamlis unchanged between the tree that was built and the commit this lands on (e641b37d, 0 commits touching it since), so the hash is current rather than already re-drifted.Why this replaces #491
#491's record is stuck on a stale cached merge-base (
8cf344f2, the pre-push head), so it renders a bogus 696-file diff. Git computesmerge-base(head, main) = e641b37dand a 1-file diff. Close/reopen did not clear the cache, so this is a fresh PR from the same branch.Worth a follow-up
This is a recurring paper cut, not a one-time fix: any lockfile change silently re-drifts the hash and breaks registry deploys again, with the only symptom being failed deployments nobody is watching. Worth either deriving the hash in CI or failing loudly with the regeneration command.