Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Expose native patch drift and cache recovery in desktop dev builds

未关闭
#7 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
bun, swift

调研方向

Start with the wrapper path in apps/desktop/scripts/build.ts, then sparkle.ts and helper.ts, where the 'differs from every pinned patch prefix' error is raised. Run bun scripts/build.ts dev --run from apps/desktop to see the unfiltered Electrobun error. Done when the underlying failure reaches the root command, and the drift message includes the apps/desktop/native/.build path and non-destructive recovery steps without resetting the checkout.

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

描述

Observed

On main at 39191bb, bun desktop dev exits with Electrobun code 1. Bun workspace-filter output elides the underlying diagnostic and repeatedly redraws the task header, leaving only the wrapper stack in sparkle.ts / build.ts.

Read-only inspection of the failing checkout found the pinned Peekaboo HEAD (4d43dc9d80cd2aa3787a27f54b76d692db1dcf8f) with native patch drift. Replaying the build verifier with a temporary private Git index found that none of the 15 accepted states (unpatched through the complete 14-patch stack) matches the cached working tree. helper.ts consequently rejects it with: The native checkout differs from every pinned patch prefix. Resolve source drift before building. Bun 1.4.0 and Swift 6.4 meet the build requirements. No full rebuild or cache mutation was performed during diagnosis.

Needed

  • Keep the underlying build failure visible through the root desktop command rather than hiding it behind filtered output.
  • Include the offending cache path and actionable, non-destructive recovery instructions in the drift diagnostic.
  • Preserve unknown native edits; do not automatically reset or delete a mismatched checkout.

Recovery is to move apps/desktop/native/.build aside as a backup and rebuild, causing SwiftPM to recreate the pinned dependencies and Ace to apply the current patches. Invoke bun scripts/build.ts dev --run from apps/desktop to bypass the root workspace-filter elision.

Found in Ace while investigating a user-reported development-loop failure. Related: githubnext/ace2#55. Dogfooding: githubnext/ace2#5.

主要语言
Swift
星标
0
派生
0
平均合并
31 分钟
30 天内合并 PR
14

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

githubnext/desktop-tools 的其他 Issue

查看 githubnext/desktop-tools 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

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