vp staged reports a saved recovery patch that is missing after restore failure on Windows

未关闭
#3,356 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@voidzero-bot 已经在做这个了。

开始于 2026年11月4日。

  • #3357 来自 @voidzero-bot —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
git, rust
领域
tooling

调研方向

Start by locating the vp staged recovery path that emits “Failed to restore unstaged changes!” and writes unstaged.patch; the issue does not name a file or test. Reproduce the restore failure on Windows in a Git worktree, then inspect whether recovery leaves a durable patch or has already restored the changes. Done means the message accurately reports a patch that remains available or confirms recovery succeeded; pull request #3357 is already open.

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

描述

- P3: minor bug triage: fix verified

[!NOTE]
🤖 gpt-6.1-sol responding on behalf of Elliot

On Windows, a pre-commit hook running vp staged completed fmt, lint, and knip, then failed while restoring an unstaged formatting-only change:

Failed to restore unstaged changes!
Done reverting to original state!
Unstaged changes have been kept back in a patch file:
<git-worktree-dir>/lint-staged/<id>/unstaged.patch
pre-commit script failed (code 1)

Immediately afterward, the reported patch path did not exist. The staged source changes were intact and git diff showed no unstaged diff. This happened in a Git worktree after formatting an import change before committing; another changed-file validation command was also running. I have not isolated whether that concurrent validation contributed.

Please ensure the recovery message names a durable patch that remains available, or explicitly report that recovery already succeeded and no patch remains. A missing patch after a failed-restore message makes it hard to establish whether changes were preserved. No private paths or source data are included here.

主要语言
Rust
星标
6.5k
派生
297
平均合并
1 天 1 小时
30 天内合并 PR
249

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

voidzero-dev/vite-plus 的其他 Issue

查看 voidzero-dev/vite-plus 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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