pnpm-lock.yaml is out of date vs package.json — frozen install fails #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Symptom
After patching the Dockerfile to use pnpm (per #1),
pnpm install --frozen-lockfilefails:Root cause
pnpm-lock.yamlships in the repo but doesn't matchpackage.json— somebody updated dependencies inpackage.jsonwithout re-runningpnpm installto regenerate the lockfile, or the lockfile was generated from a different version ofpackage.jsonthan the one currently committed.Fix we applied
Drop
--frozen-lockfilein the Dockerfile and pass--no-frozen-lockfile. This lets pnpm resolve fresh and write a new lockfile, at the cost of giving up the deterministic-install guarantee.Real fix
Regenerate the lockfile in the repo:
pnpm installlocally + commitpnpm-lock.yaml. Then frozen-install will work again. Should be a part of CI to keep it from drifting.Acceptance
--no-frozen-lockfileas a workaround.pnpm-lock.yamlregenerated + committed (upstream).Cross-refs
@nostr-dev-kit/ndkdeclared asworkspace:*with no workspace setup #3pingOrDieself-watchdog false-positives → bunker exits every 30s on non-public relays #4pablof7z/nsecbunkerd:latestis arm64-only — fails on amd64 hosts #6startKeypasses bech32 nsec to NDKPrivateKeySigner — every newly-created key fails to load #8