mirror of
https://github.com/pnpm/pnpm.git
synced 2026-07-21 05:02:30 -04:00
Two bugs that caused headless install to re-download from npm: 1. Client parsed I line key incorrectly: the key format is "integrity\tpkgId\tbase64" but the parser split at the first tab, giving only the integrity hash as the key. Fixed to split at the last tab so key = "integrity\tpkgId". 2. After writing index entries, the WAL wasn't checkpointed. Other SQLite connections (in worker threads) used stale WAL indexes. Added StoreIndex.checkpoint() which runs PRAGMA wal_checkpoint. Also removed gzip from /v1/files streaming (was causing corrupt header errors) and removed debug logging.