github / github/copilot-cli

Standalone exe file stopped working

未关闭
#3,810 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area:installation area:platform-windows
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

I'm trying to run the exe from the latest release (1.0.62) and I get this error:
```
Failed to extract bundled package: Error: EPERM: operation not permitted, rename 'C:\Users\username\AppData\Local\copilot\pkg\win32-x64\.extracting-1.0.62-46292-1781510885677' -> 'C:\Users\username\AppData\Local\copilot\pkg\win32-x64\1.0.62'
at async Object.rename (node:internal/fs/promises:785:10)
at async Pr (sea-loader.js:8:54635)
at async $h (sea-loader.js:8:55899)
at async qh (sea-loader.js:10:82) {
errno: -4048,
code: 'EPERM',
syscall: 'rename',
path: 'C:\\Users\\username\\AppData\\Local\\copilot\\pkg\\win32-x64\\.extracting-1.0.62-46292-1781510885677',
dest: 'C:\\Users\\username\\AppData\\Local\\copilot\\pkg\\win32-x64\\1.0.62'
}
```
Problem started probably with 1.0.62
Now if I attempt the update from cli itself I get the same error.

The system is windows server 2019. This is not winget or npm installation, just the standalone exe.

### Affected version

1.0.62

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Additional context

Windows NT: 10.0.17763

贡献指南

打开贡献指南

调研方向

Start by reproducing the standalone executable update on Windows Server 2019 with version 1.0.62 and inspect the extraction path shown in the sea-loader.js stack trace. Investigate why the temporary directory cannot be renamed to the versioned directory, then verify that extraction and subsequent CLI updates complete successfully.

由索引模型根据 Issue 内容生成。

评估

技术栈
node.js
领域
cli, operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。