fix(nix): refresh the pnpm-deps hash and guard it in CI - #367
Merged
Merged
Conversation
nixpkgs 2026-07-30 -> 2026-08-18, grimoire-social 2026-05-20 -> 2026-08-02. ci.yml checks out social main, so the flake input sitting on a May revision was the outlier. Assisted-by: Opus 5 (main session), claude-code v2.1.232
980f692 moved pnpm-lock.yaml. The vendored pnpm store hash was last refreshed on 2026-08-06 in Slush97#345, so every nix build of main since then fails with a fixed-output hash mismatch. The comment now carries the refresh command and points at the CI job that catches the next one. Assisted-by: Opus 5 (main session), claude-code v2.1.232
The from-source package hashes the whole dependency set, so any pnpm-lock.yaml change invalidates it, and nothing in CI touched the flake. Runs nix flake check --no-build plus nix build .#grimoire.pnpmDeps on pull requests that move pnpm-lock.yaml, package.json, .npmrc, pnpm-workspace.yaml, flake.* or nix/**. The full Electron build stays out: it costs far more runner time than the drift it would catch, which is Electron API drift rather than lockfile drift. Assisted-by: Opus 5 (main session), gpt-5.6-sol (review), claude-code v2.1.232
gegnep
marked this pull request as ready for review
August 19, 2026 06:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refresh nix/grimoire.nix dep hash, add .github/workflows/nix.yml so the next pnpm lockfile change fails in CI with the replacement hash instead of failing downstream.