pnpmConfigHook: add instructions for ERR_PNPM_LOCKFILE_CONFIG_MISMATCH

See https://github.com/NixOS/nixpkgs/pull/505103#issuecomment-4496933583

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2026-05-21 10:00:11 +02:00
parent 738de3a368
commit d00feeb02a
@@ -90,6 +90,9 @@ pnpmConfigHook() {
echo "2. Build the derivation and wait for it to fail with a hash mismatch"
echo "3. Copy the 'got: sha256-' value back into the pnpmDeps.hash field"
echo
echo "If you see ERR_PNPM_LOCKFILE_CONFIG_MISMATCH above this, try changing the pnpm version"
echo "Found 'pnpm' with version '$pnpmVersion'"
echo
exit 1
fi