Skip to content

Add a shared Git object cache for dependencies #29

Closed

Description

@LunaStev

Motivation

Every project clones each Git dependency into its own .vex/deps/<package> checkout. This duplicates objects, increases network traffic, and slows clean builds across projects and CI jobs.

Proposed direction

Use a global bare or object cache keyed by normalized source identity, while keeping project-local checkouts and exact commits controlled by vex.lock.

Requirements

  • The cache must be an optimization only; the lockfile remains authoritative.
  • --offline may use cached objects but must never access the network.
  • --locked must never change the selected commit.
  • Concurrent processes must not corrupt cache state.
  • Different URLs or credentials must not be conflated unsafely.
  • Cache paths and diagnostics must not leak credentials.

Acceptance criteria

  • Write a design covering identity, locking, corruption recovery, pruning, and platform paths.
  • Reuse cached objects without unnecessary fetches.
  • Preserve isolated project-local working trees.
  • Add integration tests proving offline reuse across two projects.
  • Document cache location and a safe cleanup procedure.

Activity

  1. added
    discussion
    feature request
    performance
    dependencies
    on Sep 18, 2026
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

    dependenciesdiscussionfeature requestperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions