Skip to content

bug(windows): amplifier update --force fails with [WinError 5] on bundle cache directories #242

@hoopsomuah

Description

@hoopsomuah

Description

amplifier update fails on Windows when clearing cached bundle directories. All bundle updates fail with [WinError 5] Access is denied. This is a companion issue to the module cache bug.

Error Output

⚠ Update completed with errors
  ✗ Bundle: amplifier: [WinError 5] Access is denied:
    'C:\Users\...\.amplifier\cache\amplifier-bundle-modes-..\.git\objects\pack\pack-....idx'
  ✗ Bundle: browser-tester: [WinError 5] Access is denied: ...
  ✗ Bundle: core: [WinError 5] Access is denied: ...
  (all bundles fail)

Root Cause

Git pack files (.git/objects/pack/*.idx) are created read-only on Windows. amplifier-foundation's sources/git.py calls shutil.rmtree() without a Windows-compatible error handler when clearing bundle caches for update.

Fix

  • microsoft/amplifier-foundation#137
  • microsoft/amplifier-app-cli#152

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions