Skip to content

[BUG] apm install fails with [WinError 5] Access is denied on Windows when processing .git objects #90

@ryanfk

Description

@ryanfk

Description:

After a package passes validation, the install step fails on Windows with an access denied error when APM tries to
manipulate files inside the cloned .git/objects directory.

Steps to reproduce:

  1. Successfully validate and install an APM package on Windows
  2. Installation fails with:
    ❌ Failed to install org/project/repo: [WinError 5] Access is denied:
    'C:...\apm_modules\org\project\repo.git\objects\02...'

Expected behavior:
APM should handle read-only .git object files on Windows (git marks these as read-only by design).

Environment:

  • APM CLI version: 0.7.3 (pip installation)
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedDirection approved, safe to start workbugSomething isn't workingpriority/highShips in current or next milestone

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions