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