Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Let tools mark cache directories with CACHEDIR.TAG

オープン
#793 コメント 0 件 リアクション 0 件 担当者 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日 4時間
マージ済み PR(30日)
45

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voidzero-dev/vite-task のほかの issue

voidzero-dev/vite-task の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。