Skip to content

[VALIDATION-5] Lockfile portability: absolute paths leak across machines #956

@danielmeppiel

Description

@danielmeppiel

Summary

After running apm install in a fresh clone, the lockfile uses absolute paths from my home directory (e.g., /Users/jdoe/.cache/apm/...) instead of relative paths. Sharing the lockfile across machines becomes impossible -- a teammate gets path not found on every entry.

Reproduction

  1. git clone <repo>; cd <repo>
  2. apm install -- generates apm.lock.yaml with absolute resolved paths
  3. Commit + push the lockfile
  4. On a different machine: apm install reads the absolute path, fails

Expected

Lockfile entries should reference repo-relative or cache-key-relative paths so the file is portable.

Workaround

Manually post-process the lockfile with sed before committing. Not great.

Environment

  • APM 0.9.3 on macOS 14
  • Tested with both Copilot and Claude Code targets

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/docs-sitedocs/src/content (Starlight), README, doc generation.area/lockfileLockfile schema, per-file provenance, integrity hashes, drift detection.priority/highShips in current or next milestonestatus/acceptedDirection approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).test/triage-validationMock issue created to validate the triage-panel workflow. Auto-closed after run.theme/portabilityOne manifest, every target. Multi-target deploy, marketplace, packaging, install.type/bugSomething does not work as documented.

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions