Skip to content

Use collision-safe managed checkout directories #24

Closed

Description

@LunaStev

Problem

Git dependencies are stored directly at .vex/deps/<package-name>. Valid Wave identifiers can still collide or fail as filesystem names:

  • Foo and foo collide on common case-insensitive filesystems.
  • Names such as CON, NUL, or AUX are reserved on Windows.
  • Future source aliases could map different package identities to the same path.

The resolver is case-sensitive, but the checkout layout is not portable.

Expected behavior

Managed checkout paths should be deterministic, portable, and collision-resistant without changing the Wave package name exposed to imports.

Acceptance criteria

  • Define a stable checkout-directory encoding or source-identity hash.
  • Support valid Wave identifiers on Windows, macOS, and Linux.
  • Detect and migrate or clearly reject existing conflicting checkout layouts.
  • Keep lockfiles portable across operating systems.
  • Add tests for case-only differences and Windows reserved names.
  • Do not weaken package-name or source-conflict validation.

Activity

  1. added
    bug
    cross-platform
    dependencies
    on Sep 18, 2026
  2. LunaStev commented on Oct 2, 2026

    @LunaStev
    MemberAuthor

    Verified completed against master 67797f6415f640e8c33f9a072879124b83934f84.

    Canonical checkout encoding supports case-distinct and Windows device names. Legacy layouts migrate lazily while locked files remain preserved; platform/path and migration regressions are present.

    Evidence: resolver/src/paths.rs, tests/git_lock_reproducibility.rs.

    Master CI run 36963423149 passed all eight jobs, including native Windows, macOS, and Linux tests. Closing as completed.

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

    bugcross-platformdependencies

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions