`dependsOn` object form cannot reach a task behind a package that lacks it; the query can
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- build-system, cli
調査の方向性
Start with task-query.md and the UserDependsOnEntry::Package behavior in vite-task b11dbb9. Reproduce the difference between vp run app#build and vp run -t app#generate on the shown package graph, then trace how skip-intermediate reconnection is implemented. Done means the selected approach reaches transitive generate tasks without duplicate execution and has coverage for packages that lack the task.
索引モデルが issue の本文から書いたものです。
説明
Problem
{ task, from } selects direct dependencies only, and the docs say recursion comes from each dependency task declaring its own entry. That chain breaks at any package that does not define the task, and every task must have a command, so a source-only package cannot relay.
app ──> ui (no generate) ──> icons (has generate)
app#build: dependsOn: [{ task: 'generate', from: 'dependencies' }]
vp run app#build on a clean checkout never runs icons#generate. vp run -t app#generate does, because the query bridges ui (skip-intermediate reconnection, task-query.md). The two mechanisms disagree about the same package graph.
Why it matters
In a monorepo whose packages are consumed as source, the only per-package preparation is code generation, and only some packages have it (25 of 121 for us). Every consumer task (test, lint, build) needs "generate in everything I transitively depend on". That is a cross-name dependency, so the query cannot express it (-t test would run test everywhere), and nested vp run -t generate is not deduplicated (#323). Today we name far-away producers by hand in a consumer that does not depend on them, keep a hand-written list of every producer for the workspace type build, and run vp run -r generate as a CI pre-pass.
Ask (either)
{ task: 'generate', from: 'dependencies', transitive: true }: materialize edges to the task across transitive dependencies throughfrom, bridging packages that lack it, which is the skip-intermediate reconnection the query already implements.task-query.mdargues against stored topological edges because package selection is per query; an explicit entry does not vary per query, so that argument does not apply.- Allow a task with
dependsOnand nocommand, so a source-only package can relay. This is Turborepo's documented Transit Nodes pattern (a task that "doesn't do anything because it doesn't match a script in anypackage.json"). Without it we needcommand: 'true'in about 100 packages.
Option 1 is the better end state: no relay tasks at all.
Versions: vite-plus 0.3.3; read against vite-task b11dbb9 (UserDependsOnEntry::Package is documented "Direct package dependency selection entry").
- 主要言語
- Rust
- スター
- 468
- フォーク
- 42
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 46
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
voidzero-dev/vite-task のほかの issue
-
vp run: output forwarding fails with EAGAIN when an inherited Node child sets stdout non-blockingオープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
voidzero-dev/vite-task#782 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
remote cache
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
voidzero-dev/vite-task#781 ·
メンテナーはふだん 1 日以内に返信
-
remote cache
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
voidzero-dev/vite-task#779 ·
メンテナーはふだん 1 日以内に返信
-
remote cache
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
voidzero-dev/vite-task#778 ·
メンテナーはふだん 1 日以内に返信
-
fspy misses Bun file reads on Linux (glibc), so cached tasks replay stale output対応中かも @wan9chi が 2 日前に担当しました。 オープンfspy
voidzero-dev/vite-task#777 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
voidzero-dev/vite-task の issue をすべて見る
似ている issue
-
Change output crossing a compactsize boundary leaves the fee slightly below the requested feerateオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bitcoindevkit/bdk_wallet#578 ·
メンテナーはふだん 8 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
521xueweihan/HelloGitHub#3832 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
canonical/opentelemetry-collector-operator#409 ·
メンテナーはふだん 1 日以内に返信