Skip to content

[BUG] apm install --frozen reports locked private Git dependency as missing #1996

Description

@chrisbanes

Describe the bug

apm install --frozen reports a private Git dependency as missing from apm.lock.yaml, even though the dependency is present in the lockfile and regular apm install resolves it successfully.

To Reproduce

Manifest:

dependencies:
  apm:
    - git: git@git.example.com:org/private-skills.git
      ref: 2026.06.10

Generated lockfile:

dependencies:
- repo_url: org/private-skills
  name: private-skills
  host: git.example.com
  resolved_commit: abcdef1234567890abcdef1234567890abcdef12
  resolved_ref: 2026.06.10
  version: 2026.6.10
  package_type: marketplace_plugin
$ apm install --frozen --no-policy

[>] Installing dependencies from apm.yml…
- frozen: apm.lock.yaml is out of sync with apm.yml.
- org/private-skills is declared in apm.yml but missing from apm.lock.yaml
[i] Tip: run ‘apm outdated’ to see what changed, then ‘apm update’.
[!] Install interrupted after 0.0s.

Expected behavior

apm install --frozen should accept the lockfile because the private Git dependency is present and resolved in apm.lock.yaml.

Environment (please complete the following information):

  • APM version: 0.23.1
  • Platform: macOS arm64
  • Install source: Homebrew
  • Command: apm install --frozen --no-policy

Additional context

  • apm install --no-policy succeeds and installs this dependency from cache.
  • apm outdated also sees the dependency.
  • Rewriting the manifest dependency from SSH to HTTPS did not fix the frozen validation failure.
  • Regenerating apm.lock.yaml with APM 0.23.1 did not fix the frozen validation failure.
  • apm install --frozen --dry-run appears to pass, but the real frozen install fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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).theme/governanceGoverned by policy. apm-policy, audit, enforcement, enterprise rollout.type/bugSomething does not work as documented.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions