Skip to content

Deps: one hash-keyed cache per machine #232

Open

Description

@Kinflou

Part of #227. Proposal: ComlineProject/docs#163, proposals/offline/supply.md#the-shared-cache.

Replace the per-package .comline/deps-cache/ with one content-addressed cache per machine, keyed by hash. Projects share it, and every copy is checked against its hash on the way in. Vendoring, mirrors and bundles all feed it.

Open: where it lives on each OS, and how it is cleaned.

Activity

  1. Kinflou commented on Nov 9, 2026

    @Kinflou
    MemberAuthor

    Decided (docs#163):

    • Location: $XDG_CACHE_HOME/comline on Linux, ~/Library/Caches/comline on macOS, %LOCALAPPDATA%\\comline\\cache on Windows. COMLINE_CACHE or cache-dir overrides it.
    • An optional read-only organisation layer sits underneath (e.g. /opt/comline/cache): read by everyone, written by no one.
    • No automatic eviction. Cleaning is explicit: comline cache list and comline cache prune (by age or size).
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

    P2SoontoolingCLI, language server, editor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions