microsoft / microsoft/amplifier

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

Open
#242 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.1k
Forks
261
Avg merge
3h 28m
Merged PRs (30d)
13

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with amplifier-foundation's sources/git.py and review the fixes referenced in microsoft/amplifier-foundation#137 and microsoft/amplifier-app-cli#152. Reproduce amplifier update --force on Windows against cached bundles; done means bundle cache clearing completes without [WinError 5] errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.