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

Let tools mark cache directories with CACHEDIR.TAG

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

维护者通常 1 天内回复

@lifeiscontent 已经在做这个了。

开始于 2026年10月3日。

  • #794 来自 @lifeiscontent —— 未关闭

评估

难度
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

环境准备

在 Codespaces 中打开

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

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

从这里开始

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

voidzero-dev/vite-task 的其他 Issue

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

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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