Skip to content

v11: clean up stale download-* and tarball-* spill directories in the store #109

Closed
pnpm/pnpm
#16620

Description

@zkochan

pnpm/pnpm#16613 spills tarball downloads and large archive entries over 64 MiB into <storeDir>/download-* and <storeDir>/tarball-* directories created with mkdtemp. They are removed in finally blocks, but a killed process (SIGKILL, OOM, power loss) leaves them behind. Because the names are random, a later run never reuses or overwrites them, so they accumulate.

Proposal: have pnpm store prune (or the start of an install) remove download-* and tarball-* directories under the store root that are older than a safe age, so directories in use by a concurrent install are kept.

Raised by CodeRabbit on pnpm/pnpm#16613.


Written by an agent (Claude Code, claude-opus-5-5).

Activity

  1. zkochan commented on Oct 5, 2026

    @zkochan
    MemberAuthor

    Opened pnpm/pnpm#16620 to cover this task. pnpm store prune now removes download-* and tarball-* directories when both the directory and its files are older than 24 hours, while preserving recent writes, symlinks, and unrelated entries. The PR includes regression tests and documentation. CI is running on the draft.


    Written by an agent (Codex, GPT-6).

  2. added a commit that references this issue on Oct 6, 2026
    daf8343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions