Let tools mark cache directories with CACHEDIR.TAG
维护者通常 1 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
- 领域
- build-system
调研方向
Start by reviewing the Cache Directory Tagging spec linked in the issue and the existing input/output caching behavior in vite-task. No source files or tests are named, so locate the code that determines task inputs and outputs. Done means directories tagged with the specified CACHEDIR.TAG signature are excluded from automatic inputs while writes remain outputs restored on cache hits.
由索引模型根据 Issue 内容生成。
描述
Problem
Some tools read and rewrite their own cache on every run. Vitest does this with results.json and its module cache. Under vp run the task then reads a file it also writes, so it's never cached ("not cached because it modified its inputs").
@voidzero-dev/vite-task-client can fix this with ignoreInput, but that asks every tool to depend on a runner-specific package. Vite+ also hardcodes an exclude for Vitest's results.json, which only covers vp test.
Proposal
Honor the Cache Directory Tagging spec. A directory containing a CACHEDIR.TAG that starts with Signature: 8a477f597d28d172789f06886806bc55 is a cache, so reads inside it aren't automatic inputs. Writes there would still be outputs and get restored on a cache hit.
Tools can then mark their caches without knowing about any runner. Cargo already tags target/, and backup tools like restic and borg skip tagged directories.
- 主要语言
- Rust
- 星标
- 471
- 派生
- 42
- 平均合并
- 1 天 19 分钟
- 30 天内合并 PR
- 55
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
voidzero-dev/vite-task 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
voidzero-dev/vite-task#822 ·
维护者通常 1 天内回复
-
Preview cache hits without running tasks可能已有人在做 @lifeiscontent 于 7 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 52/100
voidzero-dev/vite-task#791 ·
维护者通常 1 天内回复
-
Built-in tool tasks miss the cache after the workspace moves可能已有人在做 @lifeiscontent 于 7 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 67/100
voidzero-dev/vite-task#790 ·
维护者通常 1 天内回复
-
vp run: output forwarding fails with EAGAIN when an inherited Node child sets stdout non-blocking可能已有人在做 @naokihaba 于 4 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
voidzero-dev/vite-task#782 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
remote cache
难度 5/5 一周以上 新手友好度 35/100
voidzero-dev/vite-task#781 ·
维护者通常 1 天内回复
查看 voidzero-dev/vite-task 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
pact-foundation/pact-cli#154 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
antithesishq/bombadil#361 ·
维护者通常 1 天内回复
-
test(executor_l0): assert execute() TaskOutcome, not only bus events / 断言 execute() 返回的 TaskOutcome未关闭type:debt
难度 2/5 1-3 小时 新手友好度 62/100
skaiy/wild_agentos#425 ·
维护者通常 1 天内回复
-
Default-import note suggests `import * as process` for velt:process, which does not name the builtin未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug ticket
难度 2/5 1-3 小时 新手友好度 72/100
cratestack/cratestack#1154 ·
维护者通常 1 天内回复