Skip to content

[BUG] Corporate environment breaks path unpacking #438

Description

@richard-lai

Describe the bug
When installing from a path the unpacking to the temp folder can be locked by virus protection software as it scans causing an error.

To Reproduce
Steps to reproduce the behavior:
Run apm install github.com/microsoft/apm-sample-package/.apm/prompts
Errors fetching prompts

Expected behavior
A backoff and retry if another process is using the files. Possibly even config to control backoff time and the retries.

Environment (please complete the following information):

  • OS: Windows 11
  • Python Version: 3.14.3
  • APM Version: 0.7.7

Logs
⠦ Fetching prompts ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━ 90%❌ Failed to install github.com/microsoft/apm-sample-package/.apm/prompts: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\*********\AppData\Local\Temp\tmpx2nxb4rr\repo'

Additional context
This is a corporate work environment which has Symantec Endpoint Protection running. I cannot circumvent the behavior and security will not approve the cli or the temp folder being excluded and there are no existing excluded locations I can set the temp folder environment variable to.

Metadata

Metadata

Labels

bugDeprecated: use type/bug. Kept for issue history; will be removed in milestone 0.10.0.needs-triageDeprecated: use status/needs-triage. Kept for issue history; will be removed in milestone 0.10.0.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions