// conformance · 491 cases
Inputs
Which file changes make a task run again. Miss one and the cache replays an old result for new code: a green build that ships the wrong thing.
Inputs
491 casesvx97%479 of 4910 issuesTurbo68%338 of 491137 issuesNx70%344 of 491147 issuesmoon71%349 of 491142 issuesNix70%345 of 49189 issuesVite Task64%316 of 491160 issues
| Case | vx | Turbo | Nx | moon | Nix | Vite Task |
|---|---|---|---|---|---|---|
Editing a root file a workspace-root task reads runs it againWhy this is rightThe workspace root can be a project with its own tasks, reading files no member owns. When such a file changes, the root task’s key changes and the task must run again. Replaying the cached result would ship output generated from the old file. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Editing a member’s file leaves a workspace-root task over ** replayedWhy this is rightA project owns the files under it except those inside a nested project. For the workspace-root project, every member is nested, so a root task over | vx passes | ✗Turbo Step 3: ran root#build, expected it replayed or left out | Nx passes | ✗moon Step 3: ran root#build, expected it replayed or left out | Nix passes | ✗Vite Task Step 3: ran root#build, expected it replayed or left out |
An edit inside a nested repository a workspace-level input glob covers runs the task againWhy this is rightThe outer git records a nested repository as one path, or not at all, so it never lists the files inside. A task whose input glob covers them still reads those files. A key built only from the outer repository misses the edit and replays output built from the old content. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A second run over an unchanged tree replays instead of runningWhy this is rightWhen nothing a task reads has changed, its last result is still right, so replaying it is safe. Running it again spends CI minutes and local time on work whose answer is already known. Across a monorepo of many tasks, this is what lets a run with no changes finish in seconds instead of taking the full build time. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Editing an input runs the task againWhy this is rightA changed input means the stored result was computed from source that no longer exists. Replaying it would ship output built from the old code under a green run. Seeing every edit to a declared input is the most basic promise a cache makes, and every other saving depends on it. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A same-size edit right after a commit runs the task againWhy this is rightChange detection must rest on content, not on size and timestamps alone. An edit that keeps the file’s length and lands in the same second as a commit can look untouched to a check based on file stats. A tool that trusts such a check replays the old output, and the edit never reaches the build. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A new file under an input glob runs the task againWhy this is rightA glob names a set of files, and adding a file changes that set. A build that concatenates, bundles or tests everything under | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Deleting an input runs the task againWhy this is rightRemoving a file changes the input set just as editing one does. A task that bundles a directory must stop including the deleted file. Replaying the old result would ship code that is gone from the tree, such as a removed module or a test that should no longer run. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Renaming an input runs the task againWhy this is rightA file’s path is part of what a task reads, not only its bytes. A rename can change order, module names or import paths, so the output can differ even when no content changed. A key built only from the set of content hashes sees the same bytes and replays output that still names the old file. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit deep in a nested input directory runs the task againWhy this is rightA recursive glob covers every depth, and a change at any depth counts. A tool that stops walking early, or trusts a directory’s own timestamp, can miss an edit several levels down. Real sources nest deeply, so missing such an edit replays stale output for ordinary work. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit to an input named with spaces, $ and quotes runs the task againWhy this is rightFile names with spaces, quotes or | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit to an input with a non-ASCII name runs the task againWhy this is rightNon-ASCII file names are ordinary on every current file system and must map to the same path every time. git escapes such names in its plain output; a reader that does not undo the escaping loses the file from the key. Edits to it then replay the old output. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Undoing an edit replays the first run’s outputs, not the edited onesWhy this is rightA key must depend only on the current inputs, so going back to old inputs must give back the old outputs. After an undo, the tree must hold what the first run produced, not the edited run’s output. A tool that keeps whatever it wrote last leaves output from code that is no longer in the tree, under a green run. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A file outside the task’s inputs changes nothingWhy this is rightDeclared inputs are the contract: only those files can change the result. Rerunning a build because a README or another unrelated file changed wastes time on every docs edit. Explicit inputs are what let a cache stay warm across changes that cannot matter to the task. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A file a ! input pattern takes back changes nothingWhy this is rightA | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A gitignored file under an input glob changes nothingWhy this is rightFiles git ignores are local state such as logs, editor files and caches, not part of the source. They differ between machines and change on their own. Keying on them gives every machine a different key, so the cache misses on every CI runner and laptop even when the committed source is identical. | vx passes | ✗Turbo Step 5: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 5: ran a#build, expected it replayed or left out | ✗Vite Task Step 5: ran a#build, expected it replayed or left out |
A new file git does not track yet is an inputWhy this is rightA task reads what is on disk, not what git has recorded. A developer adds a file and builds before committing, and the new file belongs in the output. A tool that keys only on tracked files replays the old result until the next commit, hiding the new file from local builds. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Making an input executable runs the task againWhy this is rightThe file mode is part of what a task reads: a build that copies a script ships it runnable or not. A key that hashes content alone sees no change after | vx passes | ✗Turbo Step 3: packages/a/dist/out.txt is "plain\n", expected "exec\n" | ✗Nx Step 3: packages/a/dist/out.txt is "plain\n", expected "exec\n" | ✗moon Step 3: packages/a/dist/out.txt is "plain\n", expected "exec\n" | Nix passes | ✗Vite Task Step 3: packages/a/dist/out.txt is "plain\n", expected "exec\n" |
Making the file an input link points at executable runs the task againWhy this is rightThe link itself is unchanged; only the mode of the file it points to moved. The task reads that mode, so its output can change, as a script that checks whether a file is runnable does. A key that looks only at the link, or ignores modes, replays the old result under the new tree. | vx passes | ✗Turbo Step 4: packages/a/dist/out.txt is "plain\n", expected "exec\n" | ✗Nx Step 4: packages/a/dist/out.txt is "plain\n", expected "exec\n" | ✗moon Step 4: packages/a/dist/out.txt is "plain\n", expected "exec\n" | ✗Nix Step 4: packages/a/dist/out.txt is "plain\n", expected "exec\n" | ✗Vite Task Step 4: packages/a/dist/out.txt is "plain\n", expected "exec\n" |
Two dependencies that swap contents, at the same output path, run the project built on them againWhy this is rightAfter the swap each dependency holds what the other had, so the set of files is the same but which name holds which is not. The consumer reads them by name and builds a different result. A key that folds the dependencies without their order sees nothing new and replays the old output. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: packages/app/dist/out.txt is "x\ny\napp\n", expected "y\nx\napp\n" |
Editing a dependency rebuilds the projects that read its outputWhy this is rightA project built from a dependency’s output must rebuild when that dependency changes. Otherwise the app keeps bundling the old library while the library itself is new, and the two disagree inside one green build. The mismatch is hard to spot because each project looks up to date on its own. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run ui#build, app#build |
Editing one project does not rerun a project that does not depend on itWhy this is rightA change can only affect projects that read it, directly or through their dependencies. Rebuilding unrelated projects on every edit makes CI time grow with the size of the repo rather than the size of the change. In a large monorepo that is the difference between checking one package and rebuilding everything. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run app#build |
An edit to a file outside a dependency’s build inputs does not rebuild its dependentsWhy this is rightA dependant is affected only when something its dependency’s build reads has changed. A test file in a library does not change the built library, so the app built from it stays the same. Rebuilding the whole chain on every test edit throws away cached work whose result is already known. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A project nested inside another keeps its files out of the outer project’s inputsWhy this is rightA project nested in another’s folder owns its own files. If the outer project’s | vx passes | ✗Turbo Step 3: ran outer#build, expected it replayed or left out | Nx passes | ✗moon Step 3: ran outer#build, expected it replayed or left out | Nix passes | ✗Vite Task Step 3: ran outer#build, expected it replayed or left out |
Pointing an input symlink at another file runs the task againWhy this is rightA task reads the file behind a link, so pointing the link somewhere else changes the input. A key built from the link’s own path, or from what it pointed at once, misses the change. The cache then replays output built from the old target while the tree points at the new one. | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 2: exited 100, expected success | ✗Vite Task Step 4: packages/a/dist/out.txt is "a\n1\n", expected "a\n2\n" |
A task that lists no inputs never replays a stale result when a file it reads changesWhy this is rightWhen a task lists no inputs, any default is a guess at what it reads. Here the command reads a file outside its project; when that file changes, a guessed key does not, and the cache replays the old bytes under a green run. Not caching such a task, or rerunning it, is right. Declaring inputs is how a task earns caching. | vx passes | ✗Turbo Step 3: packages/a/dist/out.txt is "one\n", expected "two\n" | ✗Nx Step 3: packages/a/dist/out.txt is "one\n", expected "two\n" | ✗moon Step 3: packages/a/dist/out.txt is "one\n", expected "two\n" | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
A task that lists no inputs never replays a stale result when a variable it reads changesWhy this is rightA task that lists no inputs gives the tool no way to know which variables it reads. A cache keyed on files alone replays the output of a value the command no longer sees: | vx passes | Turbo passes | ✗Nx Step 2: packages/a/dist/out.txt is "dev\n", a stale result | ✗moon Step 2: packages/a/dist/out.txt is "dev\n", a stale result | Nix passes | Vite Task passes |
A task that lists no inputs runs again when its project’s sources changeWhy this is rightWhatever a tool does with a task that declares no inputs, it must not miss an edit to the project’s own sources. Running such a task every time is correct, and so is keying it on a default set that covers the edit. Replaying the result from before the edit would ship old code after a plain source change. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit deep under a brace alternative ending in ** runs the task againWhy this is rightA brace stands for its alternatives, so | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input {src,lib} keys every file under both directoriesWhy this is rightEach brace alternative here names a directory, and a directory input keys its whole tree. | vx passes | ✗Turbo Step 3: did not run a#build | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | ✗Vite Task Step 3: did not run a#build |
An input {./src,lib}/** keys files under srcWhy this is right
| vx passes | ✗Turbo Step 3: did not run a#build | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | ✗Vite Task Step 3: did not run a#build |
An input {.,src}/*.txt keys a .txt file at the project’s topWhy this is right
| vx passes | ✗Turbo Step 3: did not run a#build | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | ✗Nix Step 1: exited 100, expected success | ✗Vite Task Step 3: did not run a#build |
A file no brace alternative names changes nothingWhy this is rightA brace limits the inputs to the paths its alternatives name. A file in a directory no alternative names is not what the task reads. Keying it anyway reruns the task on unrelated edits, wasting work on every developer machine and in CI. The brace is how the user narrows the set. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A , inside a class in a brace alternative is part of the name, not a cutWhy this is rightInside a character class, a | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A { inside a class in a brace alternative is part of the nameWhy this is rightInside a character class, | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A ! brace alternative with a , in a class takes that file backWhy this is rightA negation is parsed the same way as a positive glob, so | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/\{b\}.txt keys the file named with the bracesWhy this is rightA backslash escapes a brace, so | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
An input src/\{b\}.txt does not key src/b.txtWhy this is rightAn escaped brace is literal text, not an alternative, so | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
An input written ./src/** keys the files under srcWhy this is right
| vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | moon passes | Nix passes | Vite Task passes |
A negation written !./gen/** takes gen back out of the inputsWhy this is rightA negation written | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | ✗Nx Step 3: ran a#build, expected it replayed or left out | moon passes | Nix passes | Vite Task passes |
An input */. names each top directory’s whole treeWhy this is right
| vx passes | ✗Turbo Step 3: did not run a#build | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | ✗Nix Step 1: exited 100, expected success | ✗Vite Task Step 3: did not run a#build |
A negation !gen/. takes the whole gen tree backWhy this is rightA negation | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
An input src/**/ (a trailing slash) keys the files under srcWhy this is rightA trailing slash marks a pattern as a directory, so | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input naming a directory, src, keys every file in its treeWhy this is rightA user who names a directory, | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run a#build |
An input naming a directory with a trailing slash, src/, keys its treeWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A negation naming a directory, !gen, takes its whole tree backWhy this is rightA negation naming a directory, | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | ✗moon Step 3: ran a#build, expected it replayed or left out | Nix passes | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
An input app/[ab]/*.js keys the directories the class namesWhy this is rightA character class | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input app/[ab]/*.js does not key a directory the class leaves outWhy this is rightA character class matches only the characters it lists, so | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input app/\[id\]/** keys the route directory named [id]Why this is rightFile-system routers name directories with brackets, such as | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
An input app/\[id\]/*.js does not key the sibling app/i a class would matchWhy this is rightAn escaped | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
A ! input listed before the glob it narrows still takes its file backWhy this is rightInputs are a set, not an ordered ignore file: the position of a negation in the list carries no meaning. A tool that applies a negation only to globs listed before it ignores this one. The excluded file then keys the task, and edits to it rerun the task for nothing. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A task whose inputs cover its own outputs still replays on the next runWhy this is rightA broad input such as | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | Nx passes | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
A committed file under a nested node_modules is an input like any otherWhy this is rightIgnored files are local state, but a file committed to the repository is source, whatever directory it sits in. An install under | vx passes | Turbo passes | ✗Nx Step 4: did not run a#build | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
A committed file under a dot directory (.github) is an input of **Why this is rightA committed file under a dot directory like | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A dotfile under an input glob (src/.env) is an inputWhy this is rightA dotfile such as | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A committed tsconfig.tsbuildinfo is an input of **Why this is rightA build-state file like | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A file whose name sorts after every other is still an inputWhy this is rightA file name can be any valid string, including one that sorts after every other. A scan that lists a directory as a sorted range with a fixed upper bound can stop just before it. The file drops out of the key, and its edits replay stale output. Names like that are rare, but a key must cover every name. | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
Projects named like pkg-b, pkg.c and pkg0 keep their files out of pkg’s inputsWhy this is rightA project’s inputs stop at its own directory, and | vx passes | ✗Turbo Step 3: ran pkg#build, expected it replayed or left out | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: ran pkg#build, expected it replayed or left out |
A directory beside a nested project whose name extends the nested one’s stays the outer project’s inputWhy this is rightOnly a nested project’s own directory is cut out of the outer project. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
The outer project’s own directory beside a nested project stays its inputWhy this is rightCutting a nested project out of its parent must remove only that directory. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A gitignored file named outright in the inputs is an inputWhy this is rightA broad glob skips ignored files, but an entry that names one asks for it outright, and explicit config beats the default. Generated files are often both ignored and read by a build. Skipping a named file replays a result built from its old content. The user said the task reads it. | vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | moon passes | Nix passes | Vite Task passes |
A gitignored directory named outright in the inputs keys every file under itWhy this is rightA broad glob skips ignored files, but an entry that names an ignored directory asks for it and its whole tree. Generated output is often both ignored and read by the next task. Skipping it replays a result built from the old generated files. Explicit config beats the default. | vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | ✗Vite Task Step 3: did not run a#build |
A file landing in a named input directory that did not exist runs the task againWhy this is rightA named input directory that does not exist yet is keyed as absent. A file landing in it changes what the task reads. A tool that keys a missing directory as nothing at all, the same before and after, replays output built without the new file. Absence is a fact the key must hold. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run a#build |
Creating a named input file that did not exist runs the task againWhy this is rightA named input file that does not exist is keyed as absent, not left out. Creating it changes what the task reads. If a missing file left no trace in the key, the new file would change nothing and the old output would replay. Optional config files, such as a local override, start absent like this. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Input globs into directories that do not exist are no errorWhy this is rightInputs describe what a task may read; a directory that does not exist yet, or a glob through a file, simply matches nothing. Optional and generated paths are common in real configs. Failing the run over them would break builds on a clean checkout for no gain. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input fix* keys the files it matches, not the tree of a directory it matchesWhy this is rightA glob like | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | Vite Task passes |
Each ** in src/**/x/** spans any depthWhy this is rightEach | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/**/x/** does not key a file with no x directory above itWhy this is rightA pattern | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Two tasks of one project with different negations each key their own setWhy this is rightInputs belong to a task, not a project: two tasks of one project can read different files. Here | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A sibling task keying a file does not pull it into a task that takes it backWhy this is rightInputs belong to a task, so a file one task reads does not become another’s input. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Editing a declared file at the workspace root runs the task againWhy this is rightShared files at the workspace root, such as a base config, often shape a task as much as its own sources. A root input says the task reads them. If an edit there kept the old key, every project built from that config would replay output made under the old one. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A root file no root input names changes nothingWhy this is rightA task is keyed on what it declares, nothing more. A root file no root input names, or another project’s file, is not what this task reads. Keying the whole workspace would rerun every task on any edit anywhere, and the cache would rarely hit. Explicit inputs are what make a hit trustworthy. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A root input reaching into another project’s directory keys that fileWhy this is rightA root input is a workspace-relative path, and it can point into another project’s directory on purpose, for shared data. The declaration is explicit, so the file is an input. Ignoring it replays output built from the old file, though the user said the task reads it. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A gitignored file under a root input glob changes nothingWhy this is rightIgnored files are local state, and a broad root glob such as | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | ✗moon Step 3: ran a#build, expected it replayed or left out | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A ! root input takes a root file backWhy this is rightA negated root input takes files back from the root globs, just as a negation does for project inputs. The user said this file does not affect the task. Keying it anyway reruns the task, and every task sharing the glob, whenever the file changes. A negation means the same at the root as anywhere else. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A root input naming a directory keys every file in its treeWhy this is rightA root input naming a directory means every file in its tree, as a project input does. A tool that matches only the directory entry keys nothing inside. Edits deep in the shared directory then replay output built from the old files. Naming a shared directory is the plainest way to say a task reads it. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run a#build |
A gitignored root file named outright in the root inputs is an inputWhy this is rightA broad glob skips ignored files, but a root input that names one asks for it. A generated file at the workspace root, ignored by git, can be exactly what the task reads. Skipping it replays a result built from the old content. Explicit config beats the default skip rules. | vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | moon passes | Nix passes | Vite Task passes |
A root file the task writes is not its own input, though a root input glob covers itWhy this is rightA root input glob can cover a file the same task writes at the root. Keying a task on what it wrote moves its key after every run, so it never replays. Declared outputs must be cut out of the inputs, at the root as in the project. An output is never its own task’s input. | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | ✗Nx Step 2: ran a#build, expected it replayed or left out | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
A root input glob over the task’s own project does not key its own outputsWhy this is rightA root input over the task’s own project also covers its outputs, here a timestamp it writes. If that file keyed the task, every run would change the key and nothing would ever replay. The task’s declared outputs stay out of its key, whichever glob reaches them. | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | ✗Nx Step 2: ran a#build, expected it replayed or left out | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
A root input packages/a/app/\[id\]/** keys the route directory named [id]Why this is rightEscaped brackets in a root input name a literal directory such as | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
A variable keying an uncached dependency reruns its cached dependant when it changesWhy this is rightA task is keyed on its inputs whether it caches or not, and a dependant folds that key into its own. Here the dependency writes a file from | vx passes | Turbo passes | ✗Nx Step 2: did not run b#build | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
An uncached dependency keyed on an unchanged variable lets its dependant replayWhy this is rightAn uncached dependency always runs, but its key is still defined by what it declares. With | vx passes | ✗Turbo Step 2: ran b#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
A root file keying an uncached dependency reruns its cached dependant when editedWhy this is rightAn uncached dependency still has a key made of its declared inputs, root files included, and the cached task after it folds that key. Here the dependency copies a shared schema. If its root input were ignored because it does not cache, the dependant would replay output built from the old schema. | vx passes | Turbo passes | ✗Nx Step 4: did not run b#build | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
An uncached dependency that lists no inputs never lets its dependant replay a stale resultWhy this is rightA task that lists no inputs is not cached: nothing says what it read, so its key is unknown, not unchanged. A default guess misses the root file this dependency copies. A dependant that folds the guess replays output built from the old schema; running it again is the safe answer. | vx passes | Turbo passes | ✗Nx Step 4: packages/b/out.txt is "SCHEMA1\n", expected "SCHEMA2\n" | ✗moon Step 4: packages/b/out.txt is "SCHEMA1\n", expected "SCHEMA2\n" | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
An uncached dependency declaring empty inputs lets its dependant replayWhy this is rightEmpty inputs is a declaration: the dependency is keyed on its command and config alone. Unlike a task that lists nothing, it states that no file affects it. The dependant can then replay, rather than rerun on every run only because its dependency never caches. | vx passes | ✗Turbo Step 2: ran b#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
A file keying a same-project dependency reruns the task that depends on itWhy this is rightA dependency’s key carries its inputs to the tasks after it, inside one project as across projects. Here | vx passes | Turbo passes | ✗Nx Step 3: did not run a#test | moon passes | Nix passes | ✗Vite Task Step 3: did not run a#test |
A file outside a same-project dependency’s inputs does not rerun its dependantWhy this is rightA file outside the dependency’s inputs, like | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A committed file another task declares as its output stays readable while that task runsWhy this is rightA tool that clears a task’s outputs before running it must not delete a committed file another task reads in parallel. Here | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
A task rewriting its own input ahead of a reader leaves the reader’s output currentWhy this is rightThe reader’s key must see the bytes the formatter wrote in this run, not the ones it found before. A runner that hashes every input up front keys the reader on the old | vx passes | Turbo passes | ✗Nx Step 8: packages/a/dist/out.txt is "B", expected "A" | moon passes | ✗Nix Step 2: packages/a/dist/out.txt is "X", expected "A" | Vite Task passes |
A task depending on another project’s named task rebuilds when that task’s output changesWhy this is rightA task that depends on another task builds on what that task produced. When the upstream output changes, the dependant must run again, even though none of its own files changed. A runner that only looks at the dependant’s own inputs replays its old output, and the app ships with a generated file from an earlier seed. | vx passes | Turbo passes | ✗Nx Step 4: packages/app/dist/out.txt is "A", expected "B" | moon passes | Nix passes | ✗Vite Task Step 4: packages/app/dist/out.txt is "A", expected "B" |
A result built from an input another task edited mid-run is not replayed once the input is put backWhy this is rightA key taken over the old bytes must not be stored with an output built from the new ones. Here another task edits | vx passes | ✗Turbo Step 3: packages/app/out.txt is "one\nmore\n", expected "one\n" | ✗Nx Step 3: packages/app/out.txt is "one\nmore\n", expected "one\n" | ✗moon Step 3: packages/app/out.txt is "one\nmore\n", expected "one\n" | ✗Nix Step 1: exited 100, expected success | ✗Vite Task Step 3: packages/app/out.txt is "one\nmore\n", expected "one\n" |
Tasks built over a dependency whose input was edited mid-run are not replayed once it is put backWhy this is rightA stale key does not stay in one task: it flows down the chain. Each dependant folds the dependency’s key from before the edit, while its output carries the edit itself. If the dependency’s entry is not dropped, every task built on it is stored wrong too, and putting the file back replays the whole chain from a state that no longer exists. | vx passes | ✗Turbo Step 3: packages/app/pkg/p.txt is "two\n", expected "one\n" | ✗Nx Step 3: packages/app/pkg/p.txt is "two\n", expected "one\n" | ✗moon Step 3: packages/app/pkg/p.txt is "two\n", expected "one\n" | ✗Nix Step 1: exited 100, expected success | ✗Vite Task Step 3: packages/app/pkg/p.txt is "two\n", expected "one\n" |
A change in what a key command prints runs the task againWhy this is rightA key command is how a task declares an input that is not a file, such as a tool’s version or a generated value. Its printed answer is part of the key, so a new answer must run the task again. Otherwise the runner replays output built for the old answer, for example a build made with a compiler version that is no longer installed. | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | Nx passes | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
A key command printing the same as before lets the task replayWhy this is rightA key command makes its answer part of the key, not a reason to always run. If it prints the same as before, nothing the task depends on has changed, and the stored result is still right. A runner that treats any key command as uncacheable rebuilds on every run, and the declared input buys only wasted time. | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | Nx passes | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
A key command that exits non-zero fails the run without running the taskWhy this is rightWithout its answer the key is unknown, so the task can neither replay nor run safely. Running it and storing the result under a guessed key, or replaying an old entry, is how stale bytes reach a green build. A command that fails also often means a tool is missing or broken. The run must stop and say so. | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | ✗Nx Step 1: succeeded, expected a failure | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
A key command two projects share is run once per runWhy this is rightA key command reads the state of the machine, which does not change during a run. When two projects declare the same command, its answer is the same for both, so running it twice only costs time. A slow command, such as asking a toolchain for its version, would otherwise be paid once per project on every run. | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | ✗Nx Step 1: dist/count is "xx", expected "x" | ✗moon Step 1: dist/count is "xx", expected "x" | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
A gitignored .env.local keyed through a command’s output reruns the task when edited or removedWhy this is rightA gitignored file is local state and is no input by default, which is right. A user who wants such a file to count can say so through a key command, and that explicit choice must hold. Editing or removing | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | Nx passes | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
A key command reading a dependency’s output answers after that dependency ranWhy this is rightA key command must answer for the state the task will run in. If it reads a dependency’s output before that dependency has run, it answers for the previous run. The task then builds from the new output but is stored under the old answer, and a later run replays the wrong result. The command must wait for the dependencies. | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | ✗Nx Step 8: packages/app/dist/out.txt is "B", expected "A" | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
A task reading a same-project dependency’s output, its inputs excluding it, rebuilds when the source changesWhy this is rightA task may leave its dependency’s output out of its own inputs, since that output follows from the dependency’s inputs. Its key must then fold in the dependency’s key. When | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A task reading a same-project dependency’s output replays when nothing changedWhy this is rightWhen nothing changed, both the build and the task that reads its output have results already stored. Folding the dependency’s key, rather than hashing its output after each run, lets the reader replay. A runner that cannot replay here reruns a test suite on every run though no source moved. | vx passes | ✗Turbo Step 2: ran a#test, expected it replayed or left out | Nx passes | moon passes | Nix passes | ✗Vite Task Step 2: ran a#test, expected it replayed or left out |
An untracked directory under an input glob that the user may not enter is no errorWhy this is rightA directory the user may not enter holds nothing git or the task can read, so it is no input. It is often left by another tool, a container or a mounted volume. Failing the run there blocks every build over a folder unrelated to the source. The case runs as a normal user, since root can enter every directory. | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 3: exited 1, expected success | ✗Vite Task Step 3: exited 1, expected success |
An input list holding only a ! pattern never replays a stale resultWhy this is rightAn input list of only | vx passes | ✗Turbo Step 3: packages/a/dist/out.txt is "a\n", expected "a2\n" | Nx passes | ✗moon Step 3: packages/a/dist/out.txt is "a\n", expected "a2\n" | ✗Nix Step 1: exited 100, expected success | ✗Vite Task Step 3: packages/a/dist/out.txt is "a\n", expected "a2\n" |
An input !!vendor/** never turns the rest of the inputs offWhy this is rightTwo | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A directory named like an ignored one, my_node_modules, is an inputWhy this is rightSkipping directories such as | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A project nested several directories down keeps its files out of the outer project’s inputsWhy this is rightA nested project owns its files at any depth, not only directly under the outer project. If the outer project’s | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | ✗moon Step 3: ran a#build, expected it replayed or left out | Nix passes | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A gitignored directory named in the inputs keys its own files, not a project nested in itWhy this is rightNaming a gitignored directory in the inputs opts its files back in, but only the outer project’s own files. A project nested inside that directory still owns its files, and the outer task never reads them. Keying on them reruns the outer task on every edit in the nested project. | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A glob over the sibling of a nested project, genx beside gen, keys itWhy this is rightDirectory names are compared whole, not as text prefixes: | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A glob over the whole project with the nested project taken back keys the restWhy this is rightTaking a nested directory out with | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A nested project named pkg* does not take its sibling pkg-b out of the outer inputsWhy this is rightA nested project’s directory is a path, not a glob, even when its name holds | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
A root output inside the task’s own project is not its own input, though its inputs cover itWhy this is rightA file the task writes is its output, never its input, even when an input glob such as | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | ✗Nx Step 2: ran a#build, expected it replayed or left out | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
A task naming its own output file among its inputs still replaysWhy this is rightA task’s own output is never its input, even when the user lists it among the inputs. Keying on it means each run changes the key of the next, so the task never replays. Refusing the overlap as a config error is fine; keying the task on what it writes is not. | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | Nx passes | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
An input naming the directory gen does not key the file gen-a.txt beside itWhy this is rightAn input naming the directory | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 5: did not run a#build |
A gitignored file gen named in the inputs is keyed beside a tracked gen-notes.txtWhy this is rightNaming a gitignored file in the inputs is an explicit request to key on it, and explicit config beats the ignore file. Here the task reads the ignored | vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | moon passes | Nix passes | Vite Task passes |
A key command reading a file an uncached dependency rewrites answers after it ranWhy this is rightA key command must be asked after the tasks the build depends on have run, because they may change what it reads. Asked up front, it answers for the bytes before the rewrite, and the build is filed under that answer. A later run that starts from those bytes then replays a build for another version. | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | ✗Nx Step 3: packages/app/dist/out.txt is "2", expected "1" | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
A key command printing a different byte that is not UTF-8 runs the task againWhy this is rightA key command’s output is bytes, and every byte must count. Decoded as text, | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | Nx passes | ✗moon Step 4: packages/a/out.txt is "e9", expected "e8" | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
Colour, short status and quoted paths in the repository’s git config still let an edit rerunWhy this is rightRepository git settings are the user’s to choose and must not change what a task runner sees. A tool that parses the text of | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit to a committed file inside the task’s own output directory runs it againWhy this is rightA committed file the task reads is an input, even when it sits inside a directory declared as output. Left out of the key as an output, an edit to it changes nothing the tool sees. The run then replays the old build and writes the old generated file over the new data. | vx passes | Turbo passes | Nx passes | ✗moon Step 4: packages/a/data/gen.json is "[\"a\"]", expected "[\"b\"]" | Nix passes | Vite Task passes |
A skip-worktree input absent from disk, as a sparse checkout leaves it, reruns the task once it appearsWhy this is rightA sparse checkout leaves some tracked files off disk; that is not a change by anyone. When the file appears, the task reads new content and must rerun. A tool that trusts git’s skip-worktree flag never looks at the file and replays the build made without it. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under * text=auto, changing an input from CRLF to LF runs the task againWhy this is rightUnder | vx passes | ✗Turbo Step 4: packages/a/dist/out.txt is "10\n", expected "8\n" | Nx passes | moon passes | Nix passes | Vite Task passes |
A root .gitattributes text rule reaches a run of one project: CRLF to LF runs it againWhy this is rightA root | vx passes | ✗Turbo Step 4: packages/a/dist/out.txt is "10\n", expected "8\n" | Nx passes | moon passes | Nix passes | Vite Task passes |
A text rule in the user’s global git attributes file: CRLF to LF runs the task againWhy this is rightText rules can also come from the user’s global git attributes file, outside the repo. Under such a rule git sees CRLF and LF as one blob, while the task reads different bytes. A tool that trusts git’s view replays the old build, and only on machines with that setting, which makes the stale result hard to reproduce. | vx passes | ✗Turbo Step 4: packages/a/dist/out.txt is "10\n", expected "8\n" | Nx passes | moon passes | Nix passes | Vite Task passes |
Under * text=auto eol=lf, moving a CR to another line, same size, runs the task againWhy this is rightUnder a text rule git compares a file after normalising its line endings. | vx passes | ✗Turbo Step 4: packages/a/dist/out.txt is "a\r\nb\n", expected "a\nb\r\n" | Nx passes | moon passes | Nix passes | Vite Task passes |
With core.autocrlf set, changing an input from CRLF to LF runs the task againWhy this is right
| vx passes | ✗Turbo Step 4: packages/a/dist/out.txt is "10\n", expected "8\n" | Nx passes | moon passes | Nix passes | Vite Task passes |
With git's core.trustctime=false, a same-size edit that keeps its mtime runs the task againWhy this is rightWith | vx passes | Turbo passes | ✗Nx Step 4: packages/a/dist/out.txt is "AAAA", expected "BBBB" | moon passes | Nix passes | Vite Task passes |
With git's core.checkStat=minimal, a same-size edit that keeps its mtime runs the task againWhy this is rightWith | vx passes | Turbo passes | ✗Nx Step 4: packages/a/dist/out.txt is "AAAA", expected "BBBB" | moon passes | Nix passes | Vite Task passes |
A consumer reading what its dependency writes into it as a root output builds each versionWhy this is rightA file one task writes into another project mid-run must be keyed as it is when the reader runs. Keyed before it lands, the consumer’s key reflects the previous version, and the run replays a build made from another version. Cycling through versions shows the mismatch. A tool may refuse an input over another task’s output instead. | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 6: packages/app/dist/out.txt is "vA", expected "vB" | Vite Task passes |
An edit to a committed input whose name is not UTF-8 never replays the old buildWhy this is rightFile names on Linux are bytes and need not be valid UTF-8. Committed, such a name reaches a tool through git, which escapes it in its plain output; a tool that cannot decode it may drop the file from the key, and its edit replays the old build. Refusing the name is acceptable; ignoring the file is not. | vx passes | Turbo passes | ✗Nx Step 4: packages/a/dist/all is "v1bad1", expected "v1bad2" | ✗moon Step 4: packages/a/dist/all is "v1bad1", expected "v1bad2" | Nix passes | Vite Task passes |
An edit to an untracked input whose name is not UTF-8 never replays the old buildWhy this is rightFile names on Linux are bytes and need not be valid UTF-8. Untracked, such a name is found only by walking the disk; a tool that cannot decode it may drop the file from the key, and its edit replays the old build. Refusing the name is acceptable; ignoring the file is not. | vx passes | Turbo passes | ✗Nx Step 4: packages/a/dist/all is "v1bad1", expected "v1bad2" | ✗moon Step 4: packages/a/dist/all is "v1bad1", expected "v1bad2" | Nix passes | Vite Task passes |
An edit to a root input whose name is not UTF-8 never replays the old buildWhy this is rightRoot inputs are matched like project inputs, and a name that is not UTF-8 must count there too. Shared files at the root are often read by many tasks. A tool that drops the odd name from the key replays old builds in every task that reads it. Refusing the name is acceptable; skipping it is not. | vx passes | Turbo passes | ✗Nx Step 4: packages/a/dist/all is "obad1", expected "obad2" | moon passes | Nix passes | Vite Task passes |
A name that is not UTF-8 in one project does not stop another project’s taskWhy this is rightA problem in one project’s files must not stop unrelated projects. A tool that fails the whole workspace on one odd file name blocks every build until someone renames it. Refusing the project that holds the name, or keying the name as bytes, both let project | vx passes | ✗Turbo Step 2: did not run b#build | Nx passes | moon passes | Nix passes | ✗Vite Task Step 2: did not run b#build |
An input whose name holds U+FFFD as a character is an input like any otherWhy this is rightU+FFFD is a valid character that a file name can hold, not a sign of a broken name. A tool that uses it to mark bytes it could not decode, and then drops such names, loses a real file from the key. Edits to it then replay the old output, under a green run. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A file dropped by hand into a dependency’s output directory does not rerun its dependantsWhy this is rightA dependant keys on what its dependency is built from, not on every file sitting in the dependency’s output directory. A stray file dropped there by hand does not change what the dependency produces. Rerunning the whole chain for it wastes time, and the dependency’s replay restores its own outputs anyway. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A new file under a root input glob runs the task againWhy this is rightA root input glob names a set of files, and adding a file to it is a change. A new file under shared | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A task whose inputs cover another task’s output never replays a build of that output’s old bytesWhy this is rightWhen one task’s inputs cover another task’s output, the key must see that output as it is when the reader runs. Keyed before it lands, the reader’s key reflects the previous contents, and the run replays a build of old generated code. Switching the seed back and forth shows it. A tool may refuse the overlap instead. | vx passes | Turbo passes | ✗Nx Step 3: packages/a/dist/out.txt is "one\n", expected "two\n" | moon passes | ✗Nix Step 3: packages/a/dist/out.txt is "one\n", expected "two\n" | Vite Task passes |
In projects that depend on each other, editing one reruns only its taskWhy this is rightProjects that depend on each other through their manifests still own separate files. A task that reads only its own sources, with no task dependency, need not rerun when the other project changes. Treating the cycle as one unit reruns both on every edit, or refuses a workspace the package manager accepts. | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input a dependency deletes before its dependant starts lets the dependant runWhy this is rightA file a dependency deletes before the dependant runs is simply absent when the dependant reads its inputs. The right key treats it as gone. A tool that hashed the inputs up front fails on the missing file, or keys content that no longer exists and later replays a listing that still names it. | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 1: packages/b/out.txt is "gen.txt\nkeep\n", expected "keep\n" | Vite Task passes |
Edits behind an input directory that is a link, and behind a linked root input directory, rerunWhy this is rightA task reads through a linked directory to the files behind it, and shared code is often linked into a project this way. A tool that keys on the link itself, or skips links while walking, sees no change when the files behind it are edited. The run then replays the old build. | vx passes | Turbo passes | ✗Nx Step 5: packages/a/out.txt is "V1\nW1\n", expected "V2\nW1\n" | ✗moon Step 5: packages/a/out.txt is "V1\nW1\n", expected "V2\nW1\n" | ✗Nix Step 3: exited 100, expected success | Vite Task passes |
Edits behind links below a glob’s fixed directory, one of them never committed, rerunWhy this is rightLinks can sit anywhere below a glob’s fixed part, and some are made after the last commit. The task reads through all of them. A tool that walks only the fixed directory, or lists only what git tracks, misses edits behind these links and replays the old build. | vx passes | Turbo passes | ✗Nx Step 6: packages/a/out.txt is "V1\nM1\nW1\n", expected "V2\nM1\nW1\n" | ✗moon Step 6: packages/a/out.txt is "V1\nM1\nW1\n", expected "V2\nM1\nW1\n" | ✗Nix Step 4: exited 100, expected success | Vite Task passes |
An edit behind a brace alternative’s directory that is a link rerunsWhy this is rightA brace pattern like | vx passes | Turbo passes | ✗Nx Step 5: packages/a/out.txt is "V1\nW1\n", expected "V2\nW1\n" | ✗moon Step 5: packages/a/out.txt is "V1\nW1\n", expected "V2\nW1\n" | ✗Nix Step 3: exited 100, expected success | ✗Vite Task Step 5: packages/a/out.txt is "V1\nW1\n", expected "V2\nW1\n" |
An edit behind a link inside a gitignored input directory rerunsWhy this is rightNaming an ignored directory in the inputs opts it in, and links inside it still lead to files the task reads. Generated folders often hold links to shared code. A tool that walks the ignored folder but does not follow its links misses edits behind them and replays the old build. | vx passes | Turbo passes | ✗Nx Step 5: packages/a/out.txt is "V1\nW1\n", expected "V2\nW1\n" | ✗moon Step 5: packages/a/out.txt is "V1\nW1\n", expected "V2\nW1\n" | ✗Nix Step 3: exited 100, expected success | ✗Vite Task Step 5: packages/a/out.txt is "V1\nW1\n", expected "V2\nW1\n" |
A committed edit to a tracked file an input link out of the project points at rerunsWhy this is rightA link that points outside the project still names a file the task reads. Committing the edit behind it must not hide it: git sees the link itself unchanged, since only the target’s content moved. A tool that keys on git’s record of the link replays the build made from the old target. | vx passes | Turbo passes | ✗Nx Step 6: packages/a/out.txt is "V1\n", expected "V2\n" | moon passes | ✗Nix Step 3: exited 100, expected success | ✗Vite Task Step 6: packages/a/out.txt is "V1\n", expected "V2\n" |
An edit behind an input link to a file outside the project rerunsWhy this is rightA task reads the contents behind an input link, wherever that file lives. A tool that keys on the link’s own text sees the same target path after an edit. The run then replays output built from the old contents, though the file the task reads has changed. | vx passes | Turbo passes | ✗Nx Step 5: packages/a/out.txt is "O1\n", expected "O2\n" | moon passes | ✗Nix Step 3: exited 100, expected success | ✗Vite Task Step 5: packages/a/out.txt is "O1\n", expected "O2\n" |
An edit to a gitignored file an input link points at rerunsWhy this is rightA link listed as an input makes its target an input, even when the target is gitignored: explicit inputs beat ignore rules. A tool that keys only on tracked or unignored content misses the edit behind the link. The run then replays the build made from the old target. | vx passes | Turbo passes | ✗Nx Step 5: packages/a/out.txt is "S1\n", expected "S2\n" | moon passes | ✗Nix Step 3: exited 100, expected success | ✗Vite Task Step 5: packages/a/out.txt is "S1\n", expected "S2\n" |
An edit, and then a new file, behind a linked input directory rerunWhy this is rightFiles behind a linked input directory count like files in a real one, including new ones. A tool that records the directory’s content once, or only what git tracks, misses a file added behind the link. The task’s glob reads it, so the replayed output is missing it. | vx passes | Turbo passes | ✗Nx Step 6: packages/a/out.txt is "V1\n", expected "V2\n" | ✗moon Step 6: packages/a/out.txt is "V1\n", expected "V2\n" | ✗Nix Step 3: exited 100, expected success | ✗Vite Task Step 6: packages/a/out.txt is "V1\n", expected "V2\n" |
An edit behind a link found inside a linked input directory rerunsWhy this is rightLinks can chain: a linked directory may itself hold links. The task follows every one of them when it reads. A tool that resolves only the first level keys a link it cannot see through, and edits behind the second link replay the old build. Shared folders linked from several places often look like this. | vx passes | Turbo passes | ✗Nx Step 5: packages/a/out.txt is "O1\nZ1\n", expected "O2\nZ1\n" | ✗moon Step 5: packages/a/out.txt is "O1\nZ1\n", expected "O2\nZ1\n" | ✗Nix Step 3: exited 100, expected success | ✗Vite Task Step 5: packages/a/out.txt is "O1\nZ1\n", expected "O2\nZ1\n" |
A dangling input link reruns its task once the file it names appearsWhy this is rightA dangling link is an input whose target is missing, and that missing state belongs in the key. When the target appears, the task reads new content and must rerun. A tool that skips dangling links keys the same before and after, and keeps replaying output that says the file is absent. | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 5: packages/a/out.txt is "none\n", expected "N\n" | ✗Vite Task Step 5: packages/a/out.txt is "none\n", expected "N\n" |
Input links that point at each other are no error, and an unchanged tree replaysWhy this is rightLinks that point at each other are legal on disk and turn up in real repos by mistake. A tool that follows them without a limit hangs or crashes, and one that treats them as an error fails a build that runs fine. Keying them as unresolved links lets an unchanged tree replay like any other. | vx passes | ✗Turbo Step 3: exited 1, expected success | Nx passes | moon passes | Nix passes | Vite Task passes |
An input made unreadable after an edit fails the task or rebuilds it, never replaysWhy this is rightA file the tool cannot read cannot key the task, so the tool must not act as if nothing changed. Leaving it out of the key replays the build from before the edit. Failing the run or rebuilding are both honest outcomes the user can see; a replay hides the edit. | vx passes | Turbo passes | ✗Nx Step 4: exited 1, expected success | moon passes | Nix passes | Vite Task passes |
Editing an input git was told to assume unchanged runs the task againWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Editing an input git was told to skip in the work tree runs the task againWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A same-size edit that keeps the file’s modification time runs the task againWhy this is rightSize and modification time are a hint for when to look again, not the content. Copying with | vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | moon passes | Nix passes | Vite Task passes |
A same-size edit within the same whole-second stamp as the first write runs the task againWhy this is rightext3, HFS+, FAT and some network mounts keep only whole seconds. Two writes in one second then carry one stamp, and a same-size edit looks untouched. A tool that trusts the stamp replays stale output, a bug that only shows after quick edits such as a script or a fast save. | vx passes | Turbo passes | ✗Nx Step 4: did not run a#build | moon passes | Nix passes | Vite Task passes |
An input edited while the task runs is not replayed under the key of the bytes beforeWhy this is rightThe output was made from bytes edited during the run, not the ones read when the key was taken. Stored under the first bytes’ key, undoing the edit later replays the edited result. The tool must notice the change and not file the output under a key it does not match. | vx passes | ✗Turbo Step 3: packages/a/dist/out.txt is "EDITED\n", expected "a\n" | ✗Nx Step 3: packages/a/dist/out.txt is "EDITED\n", expected "a\n" | ✗moon Step 3: packages/a/dist/out.txt is "EDITED\n", expected "a\n" | ✗Nix Step 3: packages/a/dist/out.txt is "EDITED\n", expected "a\n" | ✗Vite Task Step 3: packages/a/dist/out.txt is "EDITED\n", expected "a\n" |
An edit to a project inside a nested repository (a submodule) runs its task againWhy this is rightA submodule is held by the outer repository as one entry, a commit id, not as files. None of the project’s files are the outer git’s to list. A tool that keys the project from the outer index sees nothing change, and edits inside the submodule replay stale output. | vx passes | Turbo passes | Nx passes | ✗moon Step 5: did not run b#build | Nix passes | Vite Task passes |
An edit to a project inside a nested repository (untracked) runs its task againWhy this is rightA nested repository the outer one does not track is invisible to the outer git’s listing, yet its files are still the project’s sources. A tool that relies on the outer git alone keys none of them. Every edit then replays the old output, and the project never rebuilds until its cache is cleared. | vx passes | Turbo passes | Nx passes | ✗moon Step 5: did not run b#build | Nix passes | Vite Task passes |
An edit inside a nested repository (a submodule) under a project’s input glob runs its task againWhy this is rightThe outer git holds a vendored submodule as one path pinned to a commit, but its working files can still change. Those files are what the task reads. Keying the gitlink alone misses edits made inside it, which replay stale output until someone commits the submodule. | vx passes | Turbo passes | Nx passes | ✗moon Step 5: did not run a#build | Nix passes | Vite Task passes |
An edit inside a nested repository (untracked) under a project’s input glob runs its task againWhy this is rightAn untracked nested repository under a project’s input glob is a directory of files the task reads. The outer git skips it as a separate repository. A tool that relies on that listing drops the files from the key, and their edits replay a stale result. | vx passes | Turbo passes | Nx passes | ✗moon Step 5: did not run a#build | Nix passes | Vite Task passes |
A file a nested repository tracks despite its own ignore rule is an inputWhy this is rightAn ignore rule only stops untracked files: one a repository force-added is source like any other. That holds inside a nested repository too. A tool that applies the nested | vx passes | Turbo passes | ✗Nx Step 5: did not run a#build | ✗moon Step 5: did not run a#build | Nix passes | Vite Task passes |
An input glob over a nested project never replays a stale resultWhy this is rightAnother project’s files belong to it, so a glob reaching into a nested project is a boundary question. A tool may refuse the glob, or key on those files. Silently dropping them while the command still reads them replays a stale result, which is the one wrong answer. | vx passes | Turbo passes | ✗Nx Step 3: packages/a/dist/out.txt is "d1\n", a stale result | moon passes | Nix passes | Vite Task passes |
An input naming a file of a nested project never replays a stale resultWhy this is rightAn input that names one file of a nested project is explicit, but the file belongs to that other project. A tool may refuse the path or key on it. Accepting the name and then keying nothing replays output built from the old file, with no sign that anything was skipped. | vx passes | Turbo passes | ✗Nx Step 3: packages/a/dist/out.txt is "d1\n", a stale result | moon passes | Nix passes | Vite Task passes |
A brace input reaching a nested project never replays a stale resultWhy this is rightA brace alternative can reach a nested project as easily as a plain glob. A tool must apply the same rule to it: refuse it, or key the file. Expanding the brace without that check lets the nested file change unseen and replays a stale result. | vx passes | Turbo passes | ✗Nx Step 3: packages/a/dist/out.txt is "d1\n", a stale result | moon passes | Nix passes | Vite Task passes |
A ! input takes its files back from every positive glob that matched themWhy this is rightA negated input removes its files from the task’s whole input set, not only from the glob listed next to it. If the exclusion applied to one positive glob only, a spec file matched by another glob would still key the build. Every edit to a spec file would then rebuild output that never reads it. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/* keys the dotfile src/.envWhy this is rightAn input glob lists the files a task reads, so | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A cached task declaring empty inputs replays after a project file changesWhy this is rightEmpty inputs is an explicit statement that the task reads no file, so it is keyed on its command and config alone. It differs from listing no inputs at all, which says nothing and is not cached. Rerunning it on every project edit would ignore what the user declared and waste the run the cache was meant to save. | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/*:*.txt keys a file whose name holds a colonWhy this is rightA colon is a plain character in a POSIX file name, so a wildcard must match it like any other. A tool that reads it as a drive or scheme separator drops the file from the key. Edits to that file then replay the old output, and the build ships content that no longer matches the source. | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input naming src/a:b.txt outright keys it, untracked or committedWhy this is rightAn input that names a file outright asks for exactly that file, whatever characters its name holds and whether git tracks it yet. A colon must not be parsed as a separator. Skipping the file lets edits to it replay a stale result, both before and after it is committed. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 2: exited 1, expected success |
A !src/a:b.txt input takes the file with the colon backWhy this is rightA negated input names a file the user said does not affect the task, and that holds for a name with a colon too. If the negation fails to parse, the file stays in the key. Every edit to it then reruns work that cannot change the output, on every machine and in CI. | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input named with a backslash and a double quote is keyedWhy this is rightA file name can hold a backslash or a double quote, and it must be keyed by its real bytes. Listed without | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input whose name opens with a byte-order mark is keyed, untracked and committedWhy this is rightA file name is the exact bytes on disk, including a leading U+FEFF byte-order mark. A decoder that strips the mark loses the name, so the file drops out of the key. Every edit to it then replays the old output, whether the file is untracked or committed. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A file in a new untracked directory is an input; an ignored install inside it is notWhy this is rightA new file under an input glob is part of what the task reads, even in a directory git has never seen. Missing it replays output built without that file. An ignored | vx passes | ✗Turbo Step 5: ran a#build, expected it replayed or left out | Nx passes | moon passes | Nix passes | ✗Vite Task Step 5: ran a#build, expected it replayed or left out |
A file the repository’s .git/info/exclude ignores changes nothingWhy this is right
| vx passes | ✗Turbo Step 5: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 5: ran a#build, expected it replayed or left out | ✗Vite Task Step 5: ran a#build, expected it replayed or left out |
Pointing a dangling input link at another missing target runs the task againWhy this is rightA symbolic link is an input in its own right: its target string is what it holds, with or without a file behind it. A command can read that string, as | vx passes | ✗Turbo Step 4: did not run a#build | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | Nix passes | ✗Vite Task Step 4: did not run a#build |
A directory link back into its own input tree neither hangs nor fails the runWhy this is rightA directory link that points back into its own tree is legal, and it turns up in vendored and generated layouts. A walker that follows links without tracking where it has been loops forever or fails on an endless path. A hung CI job or a crash over a harmless link blocks every build in the repository. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Named pipes under the input and output globs neither hang the run nor stop a replayWhy this is rightA named pipe holds no bytes to hash or store, and opening one to read blocks until something writes. A tool that reads every matched path as a file hangs the run on the first pipe. Pipes under input or output globs must be passed over, so the build still runs, replays, and reruns on a real edit. | vx passes | ✗Turbo Step 4: ran a#build, expected it replayed or left out | ✗Nx Step 2: did not finish within 120 s | moon passes | ✗Nix Step 2: exited 1, expected success | Vite Task passes |
A committed input replaced by a directory keys what the directory holdsWhy this is rightWhen a committed file becomes a directory of the same name, the task now reads the files inside it. A tool that trusts git’s record of the old file, or skips the path as a type mismatch, keeps the old key. Edits inside the new directory then replay output built from a file that is gone. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A project nested in foo keeps its files out of foo’s inputs beside a sibling foo-barWhy this is rightA nested project’s files belong to it alone, so an edit there must not rerun the project around it. Here | vx passes | ✗Turbo Step 3: ran foo#build, foo-bar#build, expected it replayed or left out | Nx passes | ✗moon Step 3: ran foo#build, expected it replayed or left out | Nix passes | ✗Vite Task Step 3: ran foo#build, expected it replayed or left out |
A project nested two deep keeps its files out of both projects around itWhy this is rightEach project owns its own directory, and a project nested inside another is cut out of the outer one’s inputs. That must hold at any depth, not only one level down. If a leaf’s edit leaked into both projects above it, one change would rebuild three projects, and the waste grows with each level. | vx passes | ✗Turbo Step 3: ran foo#build, mid#build, foo-x#build, expected it replayed or left out | Nx passes | ✗moon Step 3: ran foo#build, mid#build, expected it replayed or left out | Nix passes | ✗Vite Task Step 3: ran foo#build, mid#build, expected it replayed or left out |
A same-size edit is seen after git read-tree leaves the index without file statsWhy this is rightAn index entry with no stat data says nothing about the file on disk. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit made before git read-tree wiped the index stats still runs the task againWhy this is rightAn edit made before | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A gitignored input named outright keys its creation, each edit, and its removalWhy this is rightNaming an ignored file such as | vx passes | Turbo passes | ✗Nx Step 3: packages/a/dist/out.txt is "a\n", expected "a\nAPI=a\n" | moon passes | Nix passes | Vite Task passes |
An input gen/** keys every file under the gitignored directory genWhy this is rightA glob whose fixed prefix is an ignored directory asks for that directory by name. Generated sources often live in an ignored | vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | Vite Task passes |
An input gen/*.js keys a matching file in the gitignored directory genWhy this is rightAn input | vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | Vite Task passes |
An input gen/*.js over a gitignored gen does not key a JSON file beside the matchWhy this is rightNaming an ignored directory with a narrow glob asks only for what that glob matches. A JSON file beside the | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input naming a generated client under node_modules keys itWhy this is rightA generator such as | vx passes | Turbo passes | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | ✗Nix Step 2: exited 100, expected success | Vite Task passes |
An input gen/** over a gitignored gen keys a node_modules inside itWhy this is rightAn entry naming an ignored directory asks for the whole directory; nothing under it is dropped by name. A | vx passes | Turbo passes | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | ✗Nix Step 2: exited 100, expected success | Vite Task passes |
A brace input {gen/a.txt,gen/b.txt} keys each gitignored file it namesWhy this is rightA brace of whole paths names each one outright, as its expansions written out would. Each named file is an input even though git ignores it. Treating the brace as a broad glob that skips ignored files replays output built from the old file. The brace is only shorthand for listing the paths one by one. | vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | Vite Task passes |
A brace input {gen,out}/** keys the files of both gitignored directoriesWhy this is right
| vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | Vite Task passes |
An input gen/** keys an ignored file beside the .gitkeep that keeps gen in gitWhy this is rightgit lists the | vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | Vite Task passes |
An input out/** over an ignored out keys an untracked file beside a force-added oneWhy this is rightOne force-added file makes git list part of the ignored | vx passes | Turbo passes | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | Nix passes | Vite Task passes |
A task that rewrites its own input runs again once the old bytes are put backWhy this is rightA task that rewrites its own input, like a formatter, made its result from the bytes before the rewrite but leaves the bytes after on disk. Stored under the old bytes’ key, a later checkout of the unformatted file replays a no-op and leaves it unformatted. The task must run again so the file really is formatted. | vx passes | ✗Turbo Step 3: packages/a/a.txt is "unformatted\n", expected "formatted\n" | ✗Nx Step 3: packages/a/a.txt is "unformatted\n", expected "formatted\n" | ✗moon Step 3: packages/a/a.txt is "unformatted\n", expected "formatted\n" | ✗Nix Step 1: packages/a/a.txt is "unformatted\n", expected "formatted\n" | ✗Vite Task Step 3: packages/a/a.txt is "unformatted\n", expected "formatted\n" |
An input edited and put back while the task runs does not replay the edited resultWhy this is rightA key describes the bytes the task read, and here the command read an edit that was undone before it finished. The bytes on disk match the key again, but the output came from the edit. Filed under that key, it replays the edited result over a source that no longer holds it. | vx passes | ✗Turbo Step 2: packages/a/dist/out.txt is "EDITED\n", expected "a\n" | ✗Nx Step 2: packages/a/dist/out.txt is "EDITED\n", expected "a\n" | ✗moon Step 2: packages/a/dist/out.txt is "EDITED\n", expected "a\n" | ✗Nix Step 2: packages/a/dist/out.txt is "EDITED\n", expected "a\n" | ✗Vite Task Step 2: packages/a/dist/out.txt is "EDITED\n", expected "a\n" |
An input another task swaps out and puts back while a task reads it is not replayedWhy this is rightAnother task swapped the file while the reader ran, so the reader saw the swapped bytes. The key, taken before or after, describes the original bytes. Stored under it, the bad result replays on every later run with the good file, until someone clears the cache by hand. | vx passes | ✗Turbo Step 2: packages/a/out.txt is "bad\n", expected "good\n" | ✗Nx Step 2: packages/a/out.txt is "bad\n", expected "good\n" | ✗moon Step 2: packages/a/out.txt is "bad\n", expected "good\n" | ✗Nix Step 1: exited 100, expected success | ✗Vite Task Step 2: packages/a/out.txt is "bad\n", expected "good\n" |
A committed input a dependency edits before the task starts is not replayed once put backWhy this is rightThe key must describe the bytes the command read, not the bytes before an earlier task ran. Here a dependency edits a committed input just before the task starts. A key taken before the dependency ran files the edited output under the old bytes, and putting those bytes back replays the edit. | vx passes | ✗Turbo Step 5: packages/app/dist/out.txt is "EDITED\n", expected "X\n" | ✗Nx Step 5: packages/app/dist/out.txt is "EDITED\n", expected "X\n" | moon passes | ✗Nix Step 3: packages/app/dist/out.txt is "X\n", expected "EDITED\n" | Vite Task passes |
An untracked input a dependency edits before the task starts is not replayed once put backWhy this is rightAn untracked input is read the same way as a committed one, so the same rule holds. A dependency edits it just before the task starts, and the output is built from the edit. Filed under the key of the bytes before, it replays the edited result once the original bytes come back. | vx passes | ✗Turbo Step 6: packages/app/dist/out.txt is "EDITED\n", expected "X\n" | ✗Nx Step 6: packages/app/dist/out.txt is "EDITED\n", expected "X\n" | moon passes | ✗Nix Step 4: packages/app/dist/out.txt is "X\n", expected "EDITED\n" | Vite Task passes |
A file behind a linked input directory, edited while the task runs, is not replayed once put backWhy this is rightA linked directory’s target string did not change, but a file behind it did while the command ran. The output was built from the new bytes. Stored under the key of the old ones, it replays the edited result once they are put back, and the link gives no sign anything moved. | vx passes | ✗Turbo Step 5: packages/a/dist/out.txt is "MID\n", expected "A1\n" | ✗Nx Step 5: packages/a/dist/out.txt is "MID\n", expected "A1\n" | ✗moon Step 5: packages/a/dist/out.txt is "MID\n", expected "A1\n" | ✗Nix Step 3: exited 100, expected success | ✗Vite Task Step 5: packages/a/dist/out.txt is "MID\n", expected "A1\n" |
A file behind a linked input file, edited while the task runs, is not replayed once put backWhy this is rightA linked input file holds a target string, and the bytes behind it are what the command reads. Here those bytes changed while the task ran. Stored under the key of the bytes before, the output replays the edited content after the original is restored. | vx passes | ✗Turbo Step 5: packages/a/dist/out.txt is "MID\n", expected "A1\n" | ✗Nx Step 5: packages/a/dist/out.txt is "MID\n", expected "A1\n" | ✗moon Step 5: packages/a/dist/out.txt is "MID\n", expected "A1\n" | ✗Nix Step 3: exited 100, expected success | ✗Vite Task Step 5: packages/a/dist/out.txt is "MID\n", expected "A1\n" |
A file the command adds under an input glob is not replayed once it is goneWhy this is rightA key must describe what the task read. Here the command created | vx passes | ✗Turbo Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Nx Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗moon Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Nix Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Vite Task Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" |
A file added in a directory created while the task runs is not replayed once it is goneWhy this is rightThe command created a new directory with a file in it after the key was taken, then read that file. The key describes the tree without the directory. Replayed under it, the output carries content from a file that is gone, and a clean build would not reproduce it. | vx passes | ✗Turbo Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Nx Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗moon Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Nix Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Vite Task Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" |
A named input absent when the task started, then created by it, is not replayed once goneWhy this is rightA named input that is missing when the key is taken is keyed as absent. The command then created it and read it into the output. Stored under the key for its absence, the output replays content from that file the next time it is missing, which a clean build would not produce. | vx passes | ✗Turbo Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Nx Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗moon Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Nix Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Vite Task Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" |
A directory link added under an input glob while the task runs is not replayed once goneWhy this is rightThe command created a link whose name matches no | vx passes | ✗Turbo Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Nx Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗moon Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" | ✗Nix Step 1: packages/a/dist/out.txt is "hi\n", expected "hi\nNEW\n" | ✗Vite Task Step 3: packages/a/dist/out.txt is "hi\nNEW\n", expected "hi\n" |
A task writing an ignored file, or one outside its inputs, still replays on the next runWhy this is rightA task that writes a log or another ignored file, or a file outside its inputs, has not changed its own inputs. Those writes are side effects and local state, not source. Treating them as input changes would keep the task from ever replaying, so it would rerun on every build. | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | Nx passes | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
Under a git hook’s GIT_INDEX_FILE, a file a nested repository force-added despite its ignore rule is still an inputWhy this is rightGit hooks run with | vx passes | Turbo passes | ✗Nx Step 5: did not run b#build | ✗moon Step 5: did not run b#build | Nix passes | Vite Task passes |
Under a git hook’s GIT_DIR, a file a nested repository force-added despite its ignore rule is still an inputWhy this is rightGit hooks can run with | vx passes | Turbo passes | ✗Nx Step 5: did not run b#build | ✗moon Step 5: did not run b#build | Nix passes | Vite Task passes |
Under a git hook’s GIT_INDEX_FILE, a file a nested repository force-added despite its ignore rule is still an inputWhy this is rightA project can vendor a repository of its own under an input glob. Under a hook’s | vx passes | Turbo passes | ✗Nx Step 5: did not run a#build | ✗moon Step 5: did not run a#build | Nix passes | Vite Task passes |
Under a git hook’s GIT_DIR, a file a nested repository force-added despite its ignore rule is still an inputWhy this is rightThe variables a hook sets describe the outer repository, not one vendored inside a project. With | vx passes | Turbo passes | ✗Nx Step 5: did not run a#build | ✗moon Step 5: did not run a#build | Nix passes | Vite Task passes |
An input src/{b}.txt never replays a stale result for either file it could nameWhy this is rightA brace with one alternative reads as | vx passes | ✗Turbo Step 5: packages/a/dist/out.txt is "b2\nbraces\n", a stale result | ✗Nx Step 5: packages/a/dist/out.txt is "b2\nbraces\n", a stale result | ✗moon Step 5: packages/a/dist/out.txt is "b2\nbraces\n", a stale result | Nix passes | ✗Vite Task Step 5: packages/a/dist/out.txt is "b2\nbraces\n", a stale result |
Two tasks of one project with different root inputs: editing one’s root file reruns itWhy this is rightRoot inputs belong to the task that declares them, not to its project. Editing | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Two tasks of one project with different root inputs: editing one’s root file replays the otherWhy this is rightEditing a root file that only | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: ran a#x, expected it replayed or left out |
A task whose root input is a file its dependency generates sees each fresh versionWhy this is rightA task that reads a file its dependency generates must see each new version of that file. Here | vx passes | Turbo passes | ✗Nx Step 3: packages/b/out.txt is "v1\n", expected "v2\n" | moon passes | ✗Nix Step 3: packages/b/out.txt is "v1\n", expected "v2\n" | Vite Task passes |
A task reading a file an uncached task before it writes builds from the bytes written this runWhy this is rightA task’s key reflects the bytes it reads when it runs, not the bytes on disk when the run started. Here an uncached task rewrites | vx passes | Turbo passes | ✗Nx Step 8: packages/a/dist/out.txt is "B", expected "A" | moon passes | ✗Nix Step 2: exited 100, expected success | Vite Task passes |
A committed file an uncached task rewrites ahead of its reader keys the reader on the new bytesWhy this is rightA committed, clean file can still change during a run. Here | vx passes | Turbo passes | ✗Nx Step 6: packages/a/dist/out.txt is "A", expected "B" | moon passes | ✗Nix Step 3: exited 100, expected success | Vite Task passes |
A package.json listed as an input and rewritten by an uncached task before its reader keys the reader on the new bytesWhy this is rightA | vx passes | ✗Turbo Step 5: packages/a/dist/out.txt is "\"v\": \"1\"\n", expected "\"v\": \"2\"\n" | ✗Nx Step 5: packages/a/dist/out.txt is "\"v\": \"1\"\n", expected "\"v\": \"2\"\n" | moon passes | ✗Nix Step 2: exited 100, expected success | Vite Task passes |
A root input in a dependency that an uncached task there rewrites keys the dependant on the new bytesWhy this is rightAn input is keyed from what it holds when the task runs, even when it lives in another project and that project’s task writes it. Here | vx passes | ✗Turbo Step 6: packages/app/dist/out.txt is "A", expected "B" | ✗Nx Step 6: packages/app/dist/out.txt is "A", expected "B" | moon passes | ✗Nix Step 3: exited 100, expected success | Vite Task passes |
An uncached writer reached through a task that does nothing still keys its reader on what it wroteWhy this is rightOrdering passes through every task in the graph, even one that runs nothing. Here a do-nothing task sits between the uncached writer and the reader. If the reader is keyed before the writer runs because the writer is not its direct dependency, it replays output from the previous seed under a green run. | vx passes | Turbo passes | ✗Nx Step 8: packages/a/dist/out.txt is "B", expected "A" | moon passes | ✗Nix Step 2: exited 100, expected success | Vite Task passes |
A cached task rewriting a file two do-nothing tasks ahead of its reader keys the reader on the new bytesWhy this is rightA cached task can write files too, and a reader further down is keyed on what it wrote. Here | vx passes | Turbo passes | ✗Nx Step 8: packages/a/dist/out.txt is "B", expected "A" | moon passes | ✗Nix Step 2: exited 100, expected success | Vite Task passes |
Editing the inputs of an uncached task in a dependency reruns its cached dependantWhy this is rightA task that is not cached still has inputs, and its dependants still see them change. Here | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run app#test |
Editing a dependency’s sources reruns a cached dependant reached through an uncached taskWhy this is rightA chain of dependencies passes through an uncached task without breaking. Here | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run app#test |
Editing a project nothing depends on lets a task with an uncached dependency replayWhy this is rightAn uncached dependency does not make its dependants uncacheable. Its key comes from its inputs, so only an edit those inputs see reruns the dependant. Here the edit is in a project nothing depends on. Rerunning | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 3: ran app#test, expected it replayed or left out | Vite Task passes |
A project whose directory is named with glob syntax ([lib]) still keys its filesWhy this is rightA project directory can contain characters that are special in globs, such as | vx passes | ✗Turbo Step 3: packages/[lib]/dist/o is "initial", expected "modified" | ✗Nx Step 3: packages/[lib]/dist/o is "initial", expected "modified" | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
An edit inside a git worktree checked out under a task’s inputs reruns the taskWhy this is rightFiles under a task’s inputs key the task, however git sees them. A git worktree checked out inside the inputs shows up in git as one untracked directory, and git never lists the files in it. A key built only from git’s listing misses an edit there and replays an old result. Refusing the workspace until the worktree is ignored is as safe. | vx passes | Turbo passes | Nx passes | ✗moon Step 4: packages/a/dist/o is "11", expected "12" | Nix passes | Vite Task passes |
An executable bit still reruns the task when git’s core.fileMode is falseWhy this is rightFile mode is an input when the command reads it. With git’s | vx passes | ✗Turbo Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗Nx Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗moon Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | Nix passes | ✗Vite Task Step 4: packages/a/dist/o is "plain\n", expected "exec\n" |
An executable bit still reruns the task when git’s core.fileMode is noWhy this is rightFile mode is an input when the command reads it. With git’s | vx passes | ✗Turbo Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗Nx Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗moon Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | Nix passes | ✗Vite Task Step 4: packages/a/dist/o is "plain\n", expected "exec\n" |
An executable bit still reruns the task when git’s core.fileMode is offWhy this is rightFile mode is an input when the command reads it. With git’s | vx passes | ✗Turbo Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗Nx Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗moon Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | Nix passes | ✗Vite Task Step 4: packages/a/dist/o is "plain\n", expected "exec\n" |
An executable bit still reruns the task when git’s core.fileMode is 0Why this is rightFile mode is an input when the command reads it. With git’s | vx passes | ✗Turbo Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗Nx Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗moon Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | Nix passes | ✗Vite Task Step 4: packages/a/dist/o is "plain\n", expected "exec\n" |
An executable bit still reruns the task when git’s core.fileMode is emptyWhy this is rightFile mode is an input when the command reads it. With git’s | vx passes | ✗Turbo Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗Nx Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗moon Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | Nix passes | ✗Vite Task Step 4: packages/a/dist/o is "plain\n", expected "exec\n" |
An executable bit still reruns the task when git’s core.fileMode is 00Why this is rightFile mode is an input when the command reads it. With git’s | vx passes | ✗Turbo Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗Nx Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | ✗moon Step 4: packages/a/dist/o is "plain\n", expected "exec\n" | Nix passes | ✗Vite Task Step 4: packages/a/dist/o is "plain\n", expected "exec\n" |
Run from inside a project, a change in its dependency runs it againWhy this is rightA task’s key folds in its dependencies, and the directory the run starts from must not change that. Run from inside the project, a change in a dependency must still reach the task. Otherwise the developer gets a replay built against the old dependency while the same command from the root rebuilds, and tests pass against code that is gone. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run app#build |
A project’s external dependency changing in the lockfile runs its task againWhy this is rightAn installed package is code the task runs or bundles, as much as its own source. When the lockfile resolves a different version for the project, the task’s output can change, so the task must run again. A runner blind to dependencies replays a build made with the old package, and an upgrade or a security fix never reaches what ships. | vx passes | ✗Turbo Step 5: did not run a#build | ✗Nx Step 5: did not run a#build | ✗moon Step 5: did not run a#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 5: did not run a#build |
A change to an external dependency of a workspace package a project links runs that project’s task againWhy this is rightWhat a project can import through a linked workspace package includes that package’s own dependencies. Here | vx passes | ✗Turbo Step 4: did not run b#build, c#build | ✗Nx Step 4: did not run b#build, c#build | ✗moon Step 4: did not run b#build, c#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run b#build, c#build |
A lockfile change no part of a project’s dependencies holds replays its taskWhy this is rightA lockfile holds every project’s dependencies, but each task uses only its own project’s share. A change to | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
A catalog entry pointed elsewhere runs the task of the project that takes it, and no otherWhy this is rightThe project’s own manifest still says catalog:, so its files do not change; only the root and the lockfile do. The package it installs is now different, and so is what its build reads. The project that takes that entry must run again, and projects that do not take it must replay. | vx passes | Turbo passes | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run a#build |
Installing again with nothing changed replays every taskWhy this is rightAn install that resolves the same packages leaves every task’s dependencies as they were. A key built from what is resolved, not from file times or a fresh | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
Swapping which packages two dependency names install runs the task againWhy this is rightThe same packages are installed, but the name | vx passes | ✗Turbo Step 4: did not run a#build | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run a#build |
Swapping which packages two of the root’s dependency names install runs a task reading themWhy this is rightPackages the root installs sit where every project resolves them, so a project can read them without naming them. Swapping which package the root’s | vx passes | ✗Turbo Step 4: did not run a#build | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run a#build |
An edit inside a local directory dependency runs the task of the project depending on itWhy this is rightA | vx passes | ✗Turbo Step 4: did not run lib#build | ✗Nx Step 4: did not run lib#build | ✗moon Step 4: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run lib#build |
An edit inside a local directory dependency replays the projects that do not depend on itWhy this is rightA local directory dependency belongs to the projects that install it, not to the whole workspace. | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
A file added to a local directory dependency runs the task of the project depending on itWhy this is rightA new file in a local directory dependency is installed with the rest and can be imported, globbed or bundled. The lockfile still names the same path, so only the directory’s file list shows the change. A runner that hashes only the files it saw before replays a build that misses the new file. | vx passes | ✗Turbo Step 4: did not run lib#build | ✗Nx Step 4: did not run lib#build | ✗moon Step 4: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run lib#build |
An edit to a file a local directory dependency links to runs the task depending on itWhy this is rightA symlink in a local directory dependency installs as the file it points to, so that file is part of the dependency’s content. Editing it changes what the task reads, even though no file inside the directory changed. A runner that hashes the link text rather than its target replays output built from the old file. | vx passes | ✗Turbo Step 6: did not run lib#build | ✗Nx Step 6: did not run lib#build | ✗moon Step 6: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 6: did not run lib#build |
A change in a local directory dependency’s own node_modules replays the task depending on itWhy this is rightAn install copies a local directory dependency without its | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
An edit inside a link: directory dependency runs the task of the project depending on itWhy this is rightA | vx passes | ✗Turbo Step 3: did not run lib#build | ✗Nx Step 3: did not run lib#build | ✗moon Step 3: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 3: did not run lib#build |
An edit inside a package linked by name (link:dep) runs the task depending on itWhy this is rightA | vx passes | ✗Turbo Step 7: did not run lib#build | ✗Nx Step 7: did not run lib#build | ✗moon Step 7: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 7: did not run lib#build |
An edit to a local dependency kept inside another project’s directory runs the task of the project depending on itWhy this is rightA local dependency kept in another project’s directory is still the dependency of the project that installs it. When its content changes, | vx passes | ✗Turbo Step 4: did not run lib#build | ✗Nx Step 4: did not run lib#build | ✗moon Step 4: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run lib#build |
A change to the dependencies of a workspace package linked under another name runs the linking project’s task againWhy this is right
| vx passes | ✗Turbo Step 4: did not run a#build | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run a#build |
A dependency change of a workspace nested in another’s directory runs the nested project’s task againWhy this is rightA workspace package can sit inside another project’s directory, and it keeps its own dependencies. When | vx passes | ✗Turbo Step 4: did not run n#build | ✗Nx Step 4: did not run n#build | ✗moon Step 4: did not run n#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run n#build |
A dependency change of a workspace nested in another’s directory replays the outer project’s taskWhy this is rightA project inside another’s directory is a project of its own, with its own dependencies. A change to the nested project’s dependency does not touch the outer one, so the outer task should replay. A runner that folds nested manifests into the outer project reruns it on every change of the nested one. | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
An override that forces a different transitive dependency runs the task of the project reaching itWhy this is rightAn override in the root manifest can swap a package deep in a project’s dependency tree. Here | vx passes | Turbo passes | ✗Nx Step 4: did not run b#build | ✗moon Step 4: did not run b#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run b#build |
An override replays the task of a project that does not reach the overridden packageWhy this is rightAn override changes only the projects whose dependency tree contains the package it forces. | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
Respelling an override so it resolves the same package replays every taskWhy this is rightWhat a task loads is the package an override resolves to, not how the override is written. | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
An edit inside a file: dependency beside the repository runs the task of the project depending on itWhy this is rightThe dependency lives beside the repository, so no git status shows the edit and the lockfile names only its path. The task still reads its files through the install. A key built only from the repository misses the change and replays a result built from the old code. | vx passes | ✗Turbo Step 4: did not run lib#build | ✗Nx Step 4: did not run lib#build | ✗moon Step 4: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run lib#build |
An edit inside a file: dependency beside the repository replays the projects that do not depend on itWhy this is rightOnly the projects that depend on the outside folder read its files. An edit there cannot change the output of a project that never installs it. Running those projects again for a change they do not read spends a full build on each, every time the shared folder moves. | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
Pointing a file: dependency at another directory beside the repository runs the task againWhy this is rightPointing the dependency at another folder changes the code the task installs and reads, even if the name stays the same. The manifest and lockfile record the new path. A key that does not follow the new folder’s content replays a result built from the old folder. | vx passes | ✗Turbo Step 4: did not run lib#build | ✗Nx Step 4: did not run lib#build | ✗moon Step 4: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run lib#build |
An edit inside a link: dependency beside the repository runs the task of the project depending on it, with no installWhy this is rightnode_modules holds a link to the folder, so an edit there is what the task reads at once, with no install. Nothing in the repository changed, and git sees nothing. A key that only looks inside the repository replays the old output while the code it read has moved. | vx passes | ✗Turbo Step 3: did not run lib#build | ✗Nx Step 3: did not run lib#build | ✗moon Step 3: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 3: did not run lib#build |
A file added to a link: dependency beside the repository runs the task of the project depending on itWhy this is rightA linked folder is read live, so a file added there is part of what the task can import, with no install. Adding a module is as much a change as editing one. A key that only hashed the files present at install time misses it, and the build replays without the new file. | vx passes | ✗Turbo Step 3: did not run lib#build | ✗Nx Step 3: did not run lib#build | ✗moon Step 3: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 3: did not run lib#build |
An edit inside a link: dependency beside the repository replays the projects that do not depend on itWhy this is rightOnly the projects that link the outside folder read its files. An edit there cannot change the output of a project that does not depend on it. Running every project on such an edit spends builds that produce the same bytes and makes a shared folder cost the whole workspace. | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
Pointing a link: dependency at another directory beside the repository runs the task againWhy this is rightPointing the link at another folder changes the code behind the same name, though the name is unchanged. The task reads the new folder’s files from then on. A key that keeps hashing the old target, or only the name, replays a result built from code that is no longer installed. | vx passes | ✗Turbo Step 4: did not run lib#build | Nx passes | ✗moon Step 4: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run lib#build |
Installing again with a link: dependency beside the repository unchanged replays the taskWhy this is rightInstalling again with nothing changed leaves the same link to the same folder with the same files. The task reads exactly what it read before, so its result is already on disk. Running it again because an install touched node_modules costs a full build for nothing. | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
A file added to a link: directory dependency runs the task of the project depending on it, with no installWhy this is rightA linked folder is read live, so a file added to it is something the task can now import, with no install step. Adding a module is as much a change as editing one. A key that only covers files known at install time replays the old build without the new file. | vx passes | ✗Turbo Step 3: did not run lib#build | ✗Nx Step 3: did not run lib#build | ✗moon Step 3: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 3: did not run lib#build |
An edit inside a link: directory dependency replays the projects that do not depend on itWhy this is rightOnly the projects that link the folder read its files. An edit inside it cannot change the output of a project that does not depend on it. Running those projects again spends a build each on bytes that cannot differ, on every save in the shared folder. | vx passes | Turbo passes | Nx passes | moon passes | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | Vite Task passes |
Pointing a link: dependency at another directory in the repository runs the task againWhy this is rightPointing the link at another folder in the repository changes the code behind the same name. The task reads the new folder from then on. A key that keeps hashing the old folder, or only the dependency’s name, replays a result built from code that is no longer linked. | vx passes | ✗Turbo Step 4: did not run lib#build | Nx passes | ✗moon Step 4: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run lib#build |
An edit to a link: dependency kept inside another project’s directory runs the task of the project depending on itWhy this is rightThe edited folder sits inside another project’s directory, but the dependant links it and reads its files. Which project owns the folder on disk does not decide who reads it. A key that charges the edit only to the owner replays the dependant with code it no longer reads. | vx passes | ✗Turbo Step 3: did not run lib#build | ✗Nx Step 3: did not run lib#build | ✗moon Step 3: did not run lib#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 3: did not run lib#build |
Swapping which link: directories two dependency names point at runs the task againWhy this is rightThe same two folders are linked as before, but each name now points at the other one. The task imports by name, so it now reads different code. A key that only collects the set of linked folders sees no change and replays a result built from the old pairing. | vx passes | ✗Turbo Step 4: did not run a#build | Nx passes | ✗moon Step 4: did not run a#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run a#build |
Pointing a dependency name at another package, the import name unchanged, runs the task againWhy this is rightThe task imports the same name either way, but that name now resolves to a different package. What the task reads has changed even though its source has not. A key that sees only the import name, not what it installs to, replays a result built from the old package. | vx passes | ✗Turbo Step 4: did not run a#build | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run a#build |
An edit behind a dependency installed under another name, linked from beside the repository, runs the task againWhy this is rightThe dependency is installed under another name and linked from beside the repository, so neither git nor the name shows the edit. The task still reads the linked files. A key that follows only repository files, or the package’s own name, replays an output built from the old code. | vx passes | ✗Turbo Step 3: did not run a#build | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 3: did not run a#build |
A pulled dependency bump run before the install never caches a build of the old packageWhy this is rightA | vx passes | ✗Turbo Step 7: packages/app/dist/out.txt is "confdep 1.0.0\n", expected "confdep 1.1.0\n" | ✗Nx Step 7: packages/app/dist/out.txt is "confdep 1.0.0\n", expected "confdep 1.1.0\n" | ✗moon Step 7: packages/app/dist/out.txt is "confdep 1.0.0\n", expected "confdep 1.1.0\n" | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 7: packages/app/dist/out.txt is "confdep 1.0.0\n", expected "confdep 1.1.0\n" |
A pulled bump of a transitive dependency run before the install never caches a build of the old packageWhy this is rightHere only the lockfile changes: app’s manifest still names confwrap 1.0.0, and the new lockfile resolves confwrap’s own dependency confdep to 1.1.0. Until the install, the old confdep is what confwrap loads. A runner that checks only the project’s direct dependencies against the install, or none, saves the build of the old package under the new lockfile’s key, and it replays after the install. | vx passes | ✗Turbo Step 7: packages/app/dist/out.txt is "confdep 1.0.0\n", expected "confdep 1.1.0\n" | ✗Nx Step 7: packages/app/dist/out.txt is "confdep 1.0.0\n", expected "confdep 1.1.0\n" | ✗moon Step 7: packages/app/dist/out.txt is "confdep 1.0.0\n", expected "confdep 1.1.0\n" | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 7: packages/app/dist/out.txt is "confdep 1.0.0\n", expected "confdep 1.1.0\n" |
With * text=auto in .gitattributes, a same-size edit to a CRLF file runs the task againWhy this is rightUnder | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
With * text in .gitattributes, a same-size edit to a CRLF file runs the task againWhy this is rightUnder | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
With *.txt text eol=crlf in .gitattributes, a same-size edit to a CRLF file runs the task againWhy this is rightWith | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A file checked out again under a new eol=crlf rule runs the task again, though git still calls it cleanWhy this is rightA new line-ending rule changes nothing git stores: the blob stays the same and, once the file is checked out again, git calls the tree clean. The bytes on disk are CRLF now, and the task reads those. A runner that keys a clean file by its git blob replays the LF build for a CRLF file. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under a project’s own *.md text rule, a same-size edit to a CRLF file runs the task againWhy this is rightA project can set its own line-ending rules in its own | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under * text=auto, rewriting a file holding a lone CR from LF to CRLF runs the task againWhy this is rightWhether git calls a file text or binary, a rewrite from LF to CRLF changes the bytes the task reads. A lone CR makes git’s guess about the file uncertain, and in text mode it may store both versions as the same blob. A runner that trusts that blob replays output built from the LF file, so the CRLF version never reaches the build. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under * text=auto, rewriting a file holding a NUL past its first 8000 bytes from LF to CRLF runs the task againWhy this is rightGit looks only at a file’s first 8000 bytes to decide if it is binary, so a NUL past them leaves it text. Rewritten from LF to CRLF, the file on disk changes while git may store the same normalised blob. A runner that trusts that blob replays the old build, though every line the task reads is different. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under * text=auto, rewriting a file holding a control byte from LF to CRLF runs the task againWhy this is rightA control byte does not make git call a file binary, so under | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under * text=auto, rewriting a file holding plain text from LF to CRLF runs the task againWhy this is rightUnder | vx passes | ✗Turbo Step 4: did not run a#build | Nx passes | moon passes | Nix passes | Vite Task passes |
Under * text=auto, dropping the CR from a binary file’s CRLF runs the task againWhy this is rightUnder | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit to a committed input with a non-ASCII name runs the task againWhy this is rightA committed file with a non-ASCII name is an input like any other. Git quotes such a path in its output unless asked not to, and a quoted path names no file on disk. A runner that reads git’s list as-is drops the file from the key, so editing it replays the old build. Names are bytes and must be read as git meant them. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/*:bar.txt keys foo:bar.txt and foo::bar.txt: a : is part of a nameWhy this is rightIn a glob, a | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input src/a,b.ts keys the file named so: a , outside braces is part of a nameWhy this is rightA | vx passes | ✗Turbo Step 1: exited 1, expected success | Nx passes | moon passes | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
Inputs through @scope, a+b and (marketing) directories key the files under themWhy this is rightPaths with | vx passes | ✗Turbo Step 1: exited 1, expected success | ✗Nx Step 7: did not run a#build | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
Inputs named with a $, quotes, a space or a tab, committed or not, each rerun the task when editedWhy this is rightFile names may hold | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A file or directory whose name holds a newline is an input, untracked or committedWhy this is rightA newline is a legal byte in a file or directory name. A runner that reads git’s or the file system’s list one line at a time splits such a name in two, and neither half names a file. The file then drops out of the key, and an edit to it replays the old output. Git’s NUL-separated output keeps each name whole. | vx passes | ✗Turbo Step 3: did not run a#build | Nx passes | ✗moon Step 3: did not run a#build | ✗Nix Step 3: exited 100, expected success | ✗Vite Task Step 3: did not run a#build |
An input src/[invalid keys the file named so, or is refused, never left unkeyedWhy this is rightAn unclosed | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Only a file named .gitignore holds ignore rules: foo.gitignore and .ignore do notWhy this is rightGit reads ignore rules only from files named | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An uncommitted .gitignore edit that stops ignoring a file, then ignores it again: an edit it ignores replays the taskWhy this is rightIgnore rules decide what is local state, and the rules in force are the ones on disk now, committed or not. While | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
An uncommitted .gitignore edit that stops ignoring a file, then ignores it again: an edit it leaves an input runs the task againWhy this is rightOnce an uncommitted .gitignore edit stops ignoring | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A * .gitignore that whitelists one file: an edit it ignores replays the taskWhy this is rightA .gitignore of | vx passes | ✗Turbo Step 4: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 4: ran a#build, expected it replayed or left out | ✗Vite Task Step 4: ran a#build, expected it replayed or left out |
A * .gitignore that whitelists one file: an edit it leaves an input runs the task againWhy this is rightA | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A project’s !important.log under the root’s *.log: an edit it ignores replays the taskWhy this is rightA project’s own .gitignore can re-include a file the root ignores, since git applies the deeper rule last. Other | vx passes | ✗Turbo Step 4: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 4: ran a#build, expected it replayed or left out | ✗Vite Task Step 4: ran a#build, expected it replayed or left out |
A project’s !important.log under the root’s *.log: an edit it leaves an input runs the task againWhy this is rightGit applies the deeper .gitignore last, so a project’s | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A root .gitignore with *.log and !keep.log: an edit it ignores replays the taskWhy this is rightA root .gitignore with | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A root .gitignore with *.log and !keep.log: an edit it leaves an input runs the task againWhy this is rightIn a root .gitignore with | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A root rule two directories into a project, under an input **: an edit it ignores replays the taskWhy this is rightA root rule can name a path deep inside a project, such as | vx passes | ✗Turbo Step 4: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 4: ran a#build, expected it replayed or left out | ✗Vite Task Step 4: ran a#build, expected it replayed or left out |
A root rule two directories into a project, under an input **: an edit it leaves an input runs the task againWhy this is rightA root rule like | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A new directory’s own .gitignore: an edit it ignores replays the taskWhy this is rightA new, untracked directory can bring its own .gitignore, and git applies it at once. A file it ignores, such as | vx passes | ✗Turbo Step 4: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 4: ran a#build, expected it replayed or left out | ✗Vite Task Step 4: ran a#build, expected it replayed or left out |
A new directory’s own .gitignore: an edit it leaves an input runs the task againWhy this is rightA new directory’s .gitignore ignores only what it names. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A nested .gitignore, which ignores only below it: an edit it ignores replays the taskWhy this is rightA .gitignore applies to its own directory and below, so | vx passes | ✗Turbo Step 4: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 4: ran a#build, expected it replayed or left out | ✗Vite Task Step 4: ran a#build, expected it replayed or left out |
A nested .gitignore, which ignores only below it: an edit it leaves an input runs the task againWhy this is rightA nested .gitignore ignores only below its own directory. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A FIFO under an input glob does not hang the runWhy this is rightA FIFO is not a file with content: opening it to read waits for a writer that never comes. A runner that hashes everything under a glob hangs there, and a CI job runs until its timeout. Tools and test servers create FIFOs in project trees, so a runner must skip them, or treat them by type, and finish the run. | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 3: exited 1, expected success | Vite Task passes |
A file added with git add -N keys its bytes: an edit to it runs the task againWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A task keyed on a root file and no project file runs again when the root file changesWhy this is rightA task may depend on a file at the workspace root, such as a shared config, and declare it explicitly. That file is then part of its key even when no project file is. A runner that ignores root inputs when the project lists none replays the old output after the root file changes, and the new config never reaches the build. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A task ordered after a dependency, but not keyed on it, replays when only the dependency changesWhy this is rightThe task was told to run after its dependency but not to key on it, because it never reads what the dependency produces. A change only in the dependency leaves this task’s inputs as they were. Running it again ignores that declaration and costs a build that gives the same bytes. | vx passes | –Turbo: N/A A dependency’s hash always keys its dependants: no task orders a dependency without it. | Nx passes | moon passes | –Nix: N/A A dependency’s output path is its dependant’s input: it always keys it. | Vite Task passes |
A negation with a trailing slash, !src/gen/, takes that directory’s tree out of the keyWhy this is rightA trailing slash only says the path is a directory: | vx passes | Turbo passes | Nx passes | ✗moon Step 3: ran a#build, expected it replayed or left out | Nix passes | Vite Task passes |
A !**/*.bak input still keys a file named plain bakWhy this is rightAn exclusion by suffix means files ending in | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A key command that leaves a background child running does not hold up the runWhy this is rightA key command is done once its shell exits and its answer is printed. A child it started in the background, such as a daemon a version check wakes, can keep the output pipe open for a long time. A tool that waits for the pipe to close waits on that child, and every run, even one with nothing to do, stalls with it. | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | ✗Nx Step 1: did not finish within 30 s | ✗moon Step 1: did not finish within 30 s | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
An edit in a project whose directory name starts with : runs its task againWhy this is rightA directory name is just a name, and | vx passes | ✗Turbo Step 1: exited 1, expected success | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
A project directory named *g keys only its own files, not those of big beside itWhy this is rightA | vx passes | ✗Turbo Step 3: ran star#build, expected it replayed or left out | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
A brace input naming src and the escaped app/\[id\] keys both directoriesWhy this is rightNext.js routes live in folders like | vx passes | ✗Turbo Step 3: did not run a#build | ✗Nx Step 3: did not run a#build | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 3: did not run a#build |
A negation that matches a directory link’s name still keys the files behind itWhy this is rightInputs are | vx passes | ✗Turbo Step 5: packages/a/dist/out.txt is "a\none\n", expected "a\ntwo\n" | ✗Nx Step 5: packages/a/dist/out.txt is "a\none\n", expected "a\ntwo\n" | ✗moon Step 5: packages/a/dist/out.txt is "a\none\n", expected "a\ntwo\n" | ✗Nix Step 3: packages/a/dist/out.txt is "a\n", expected "a\none\n" | ✗Vite Task Step 5: packages/a/dist/out.txt is "a\none\n", expected "a\ntwo\n" |
A new version of a workspace package a project depends on runs that project’s pack againWhy this is rightPacking or publishing a package writes the version each | vx passes | ✗Turbo Step 4: did not run app#pack | ✗Nx Step 4: did not run app#pack | ✗moon Step 4: did not run app#pack | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run app#pack |
Clearing the executable bit of a committed input runs the task againWhy this is rightA task can read a file’s mode (a packager that keeps the bit, a check that a script is runnable). Taking the bit away is as much a change as adding it. A tool that keys only content, or only notices the bit being set, replays the result built from the executable file. The output says the file is plain. | vx passes | ✗Turbo Step 5: did not run a#build | ✗Nx Step 5: did not run a#build | ✗moon Step 5: did not run a#build | Nix passes | ✗Vite Task Step 5: did not run a#build |
An input made executable and plain again replays the plain buildWhy this is rightPutting a file back as it was puts the task back on a result it already built. A tool that keys the mode must key the same value for the same mode, not the history of changes. Rebuilding here costs the full task for a state the cache already holds. The third run replays, and the output says plain. | vx passes | ✗Turbo Step 3: did not run a#build | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | ✗Vite Task Step 3: did not run a#build |
Making an input git does not track yet executable runs the task againWhy this is rightA new script is untracked until the user commits it, and git holds no mode for it. A tool that reads modes only from git’s index sees no change and replays the build of the plain file. The bit must be read from the file itself. The second run runs and sees the file executable. | vx passes | ✗Turbo Step 4: did not run a#build | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | Nix passes | ✗Vite Task Step 4: did not run a#build |
Committing an input made executable replays the build of the executable fileWhy this is rightA commit records what is already on disk; the file is the same before and after. A tool that keys the working tree for a dirty file and git’s record for a clean one must give both the same value. Otherwise every commit costs a rebuild of work already done. The run after the commit replays. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Making a root input executable runs the task that names it againWhy this is rightA shared script at the root ( | vx passes | ✗Turbo Step 3: did not run a#build | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | ✗Vite Task Step 3: did not run a#build |
Selecting a project nested in another, an edit to its untracked file runs its task againWhy this is rightA project inside another project’s directory owns its own files, untracked ones too. A tool that scans untracked files only at the selected projects’ top level, or hands the nested project’s files to its parent, misses the edit and replays a stale build. The nested project’s task runs again with the new content. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A run of one project ignores a file its own .gitignore ignores, as a full run doesWhy this is rightGit’s ignore rules come from every | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
An input naming the file a task writes into its output directory does not rerun the taskWhy this is rightInput and output patterns often overlap: | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | ✗Nx Step 2: ran a#build, expected it replayed or left out | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
An input naming a file the task’s output glob matches does not rerun the taskWhy this is rightInput and output patterns often overlap: | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | ✗Nx Step 2: ran a#build, expected it replayed or left out | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
An input glob that matches the one file a task writes does not rerun the taskWhy this is rightInput and output patterns often overlap: | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | ✗Nx Step 2: ran a#build, expected it replayed or left out | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
An input glob that reaches into the task’s output directory does not rerun the taskWhy this is rightInput and output patterns often overlap: | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | ✗Nx Step 2: ran a#build, expected it replayed or left out | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
An input glob that overlaps the task’s output glob does not rerun the taskWhy this is rightInput and output patterns often overlap: | vx passes | ✗Turbo Step 2: ran a#build, expected it replayed or left out | ✗Nx Step 2: ran a#build, expected it replayed or left out | moon passes | Nix passes | ✗Vite Task Step 2: ran a#build, expected it replayed or left out |
An input file replaced by a link to a file with other content runs the task againWhy this is rightA task reading through a link reads the target’s bytes. Swapping a file for a link (a shared config linked in, a vendored file deduplicated) changes what the task reads even though the path stays. A tool that keys the link’s own entry, or skips links, replays the build of the old file. The task runs and writes the target’s content. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input link replaced by a plain file with other content runs the task againWhy this is rightUndoing a link (vendoring a file that was shared) puts new bytes at the same path. A tool that remembers the path as a link and keys its target string, or the target file, misses that the content now lives in the file itself. The task runs and writes the file’s content. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit made through a hard link outside the inputs reruns the task reading the other nameWhy this is rightTwo hard links are one file: writing through either changes both, and the input’s path never appears in the write. A tool that watches or stats only the paths written, or caches a file’s hash by the path that changed, keeps the input’s old hash and replays a stale build. The task runs and writes the new content. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An empty directory created under the inputs replays the taskWhy this is rightGit does not track directories, and an input glob over files matches no empty one. Creating an empty folder (an editor’s scratch, a tool’s placeholder) changes no file the task reads. A tool that keys directories reruns for nothing. The run replays. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input emptied to zero bytes runs the task againWhy this is rightAn empty file is a real state: a truncated config, an emptied fixture. A tool that treats an empty file as absent, or skips zero-length files when hashing, keys the same before and after deleting every byte of one, and replays the old result. The task runs and writes nothing from the file. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a*/** keys files under every directory starting with a, and no otherWhy this is rightA star in a directory name picks directories, then | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/**/*f keys a file ending in f at any depth, and not one ending otherwiseWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/*c keys abc and not abdWhy this is rightA leading star matches any start of a name, and the rest must match exactly. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a*/b keys ax/b, and not ax/cWhy this is rightA star in the directory part leaves the file name exact: only files named | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a*/b does not key ax/y/b, two levels downWhy this is rightA single star stays inside one path segment, so | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a*b*c*d*e* keys a name with those letters in order, and not one missing the lastWhy this is rightSeveral stars each match any run of characters between fixed letters. A matcher that backtracks badly, or caps the stars, gets these wrong. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a*b?c*x keys aXbYcZx, and not abcx, where ? has nothing to matchWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/ab[b-d] keys abc, and not abeWhy this is rightA range in brackets matches one character from it. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a[!a]b keys axb, and not aabWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a[^a]b keys axb, and not aabWhy this is right
| vx passes | Turbo passes | Nx passes | ✗moon Step 3: ran a#build, expected it replayed or left out | Nix passes | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
An input g/a???b keys a name with three characters between a and b, not twoWhy this is rightEach | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a?b keys axb, and not the file b in a directory aWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a*b keys axyb, and not ax/yb across a directoryWhy this is rightA single star stops at | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/*x keys g/fox, and not g/d/fox below itWhy this is rightA pattern without | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a/**/b keys g/a/b, with no directory betweenWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a/**/b keys g/a/x/y/z/b, three directories downWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/**/c keys g/c at the top of the treeWhy this is rightA leading | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/ab{c,d,*} keys abzz through its star alternativeWhy this is rightEach brace alternative is a pattern of its own, a star included. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a/{b/c,c/b} keys a/c/b, and not a/b/bWhy this is rightAlternatives can hold whole paths. A tool that splits the pattern at | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/{a/{b,c},abc} keys a/c and abc, and not a/dWhy this is rightBraces nest: the inner set expands inside the outer alternative. A tool that expands one level leaves | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/{a/{b,c},abc} keys the plain alternative abcWhy this is rightThe outer set’s other alternative is a name of its own, matched whole. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/**/【* keys a name starting with 【, and not a plain oneWhy this is rightA pattern can hold any character, and a star after a multi-byte one must still match by characters, not bytes. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/[\]a] keys the file named ]Why this is rightInside a class, | vx passes | Turbo passes | ✗Nx Step 5: did not run a#build | ✗moon Step 1: exited 1, expected success | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
An input g/a\*b keys only the file literally named a*b, not axbWhy this is rightA backslash makes the star an ordinary character, so the pattern names one file. A backslash is also how Windows writes a separator, so a tool may refuse the pattern before any task runs and ask for | vx passes | Turbo passes | Nx passes | ✗moon Step 5: did not run a#build | Nix passes | Vite Task passes |
An input g/[x\-] keys the file named -, and not yWhy this is rightAn escaped dash in a class is a dash, not a range. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
An input g/x/../a.txt keys g/a.txtWhy this is rightA | vx passes | Turbo passes | ✗Nx Step 5: did not run a#build | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
An input g/..notes keys a file named ..notes, which is a name and not a parentWhy this is rightOnly a segment that is exactly | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
An input g/b../c keys c in a directory named b..Why this is rightA directory named | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | Vite Task passes |
An input g/**/*.txt keys a file under a dot directoryWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/*/x keys x inside a dot directoryWhy this is rightA star covers every name at its level, dot names included, as | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/.* keys .env, and not envWhy this is rightA pattern that starts with a dot names hidden files explicitly. It must not reach a plain name. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/.*/x keys x under a dot directory, and not under a plain oneWhy this is rightThe leading dot belongs to the directory segment and narrows it to hidden directories. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/v[0-9] keys v7, and not vaWhy this is rightA digit range is the commonest class: numbered snapshots, versions, shards. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/[a-cx-z]1 keys y1, and not m1Why this is rightA class can hold several ranges side by side; each one counts. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a[b-] keys a-, and not acWhy this is rightA dash at the end of a class is a literal dash, not an open range. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | ✗Turbo Step 1: exited 1, expected success | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input g/a[-b] keys a-, and not acWhy this is rightA dash at the start of a class is a literal dash, not a range. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | ✗Turbo Step 1: exited 1, expected success | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input g/a[.]b keys a.b, and not axbWhy this is rightInside a class a dot is a dot, not any character. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a[*] keys the file named a*, and not abWhy this is rightInside a class a star is a literal character; brackets are how a pattern names a star. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a[?] keys the file named a?, and not abWhy this is rightInside a class a question mark is literal; brackets are how a pattern names one. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a[!x]b keys ayb, and not the file b in a directory aWhy this is rightA class matches one character of a name, and the separator between directories is never one, even for a negated class. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | ✗Nx Step 3: ran a#build, expected it replayed or left out | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | Vite Task passes |
An input g/[!a-c]x keys dx, and not bxWhy this is rightA negated range excludes every character in it. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/[^0-9]x keys ax, and not 5xWhy this is rightThe caret spelling of a negated range excludes every digit. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | ✗moon Step 3: ran a#build, expected it replayed or left out | Nix passes | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
An input g/a{,b}.txt keys a.txt, and not ac.txtWhy this is rightAn empty alternative is the pattern without that part, so | vx passes | ✗Turbo Step 1: exited 1, expected success | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input g/a{,b}.txt keys ab.txtWhy this is rightThe non-empty alternative of the same braces is a pattern of its own. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | ✗Turbo Step 1: exited 1, expected success | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input g/*.{js,ts} keys x.ts, and not x.cssWhy this is rightBraces over extensions are how most configs name source files. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/{a,b}/**/*.js keys g/b/c/d.js, and not g/c/d.jsWhy this is rightBraces pick directories, then | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a* keys the file named a itselfWhy this is rightA star matches any run of characters, the empty run included. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/x*y/z keys z in xy, where the star matches nothingWhy this is rightA star inside a directory name may match the empty run there too. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a?b keys aéb, where ? matches one two-byte characterWhy this is right
| vx passes | Turbo passes | ✗Nx Step 5: did not run a#build | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
An input g/[éè]x keys éx, and not exWhy this is rightA class lists characters, and a character can take several bytes. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | ✗Nx Step 5: did not run a#build | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
An input g/a/** keys a file four directories below aWhy this is rightA trailing | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/**/a/*.txt keys g/q/r/a/x.txt, and not g/q/x.txtWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/**/a/*.txt keys g/a/x.txt with nothing betweenWhy this is rightThe | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/**/**/x keys g/x, as g/**/x doesWhy this is rightTwo | vx passes | Turbo passes | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
An input g/*.TXT keys x.TXT, and not y.txtWhy this is rightOn a case-sensitive filesystem | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/a b.txt keys the file with a space in its nameWhy this is rightA space is an ordinary character in a pattern; a tool that splits patterns on it reads two patterns. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/*.* keys a.b, and not abWhy this is rightThe dot between the stars is literal, so a name without a dot is not matched. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/*.d.ts keys x.d.ts, and not x.tsWhy this is rightA pattern with two extensions needs both; the star cannot swallow the first. A user writes the pattern expecting the glob rules every shell and bundler share. A tool that reads it more narrowly never keys the file the task reads, and replays a build of its old content; one that reads it more widely reruns on files the task never touches. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/? keys a one-character name, and not a two-character oneWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input g/[]a] keys the file named ]Why this is rightA | vx passes | ✗Turbo Step 1: exited 1, expected success | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
Edits to inputs named -n.txt, :(top)x.txt and a*b.txt each run the task againWhy this is rightA tool that passes file names to git without | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A file ignored through git’s core.excludesFile is not an input, and editing it replaysWhy this is rightGit reads ignore rules from | vx passes | ✗Turbo Step 4: ran a#build, expected it replayed or left out | ✗Nx Step 4: ran a#build, expected it replayed or left out | moon passes | ✗Nix Step 4: ran a#build, expected it replayed or left out | ✗Vite Task Step 4: ran a#build, expected it replayed or left out |
With A.txt and a.txt both committed, an edit to a.txt runs the task againWhy this is rightOn a case-sensitive file system | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A new a.txt beside a committed A.txt runs the task againWhy this is rightA new file is a new input even when its name differs from a tracked one only in case. A runner that matches new paths against tracked ones without regard to case takes | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under core.ignorecase=true on Linux, a new a.txt beside a committed A.txt runs the task againWhy this is rightA | vx passes | Turbo passes | Nx passes | ✗moon Step 4: did not run a#build | Nix passes | Vite Task passes |
An input src/A.txt does not key src/a.txtWhy this is rightA literal input names one file, byte for byte. On a case-sensitive disk | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/** does not key files under a sibling Src directoryWhy this is rightDirectory names are matched as exactly as file names. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/[A-Z].txt keys B.txt, and not b.txtWhy this is rightA range in a class covers the characters between its ends and no others. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit to a committed file whose name is in decomposed Unicode runs the task againWhy this is rightA name like | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A new untracked file whose name is in decomposed Unicode runs the task againWhy this is rightGit lists an untracked name by its bytes, and a decomposed | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
With composed and decomposed é.txt side by side, an edit to either runs the task againWhy this is rightOn Linux the two spellings of | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A literal input spelled in decomposed Unicode keys the file of that spellingWhy this is rightA config written on macOS may spell a name in decomposed form, and the file on disk has the same bytes. A runner that normalises the pattern but not the disk, or the other way round, matches nothing. The file then drops out of the key and its edits replay. Bytes that agree must match. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/?.txt keys a file named with one emojiWhy this is right
| vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
An input src/[😀😁].txt keys 😁.txtWhy this is rightA class lists characters, and an emoji is one character even when it takes two UTF-16 units. A matcher that splits it into halves builds a class of four broken units and matches nothing. The emoji file then never keys the task. Its edits must run the task again. | vx passes | Turbo passes | ✗Nx Step 3: did not run a#build | moon passes | ✗Nix Step 1: exited 100, expected success | Vite Task passes |
A literal input src/#notes.txt keys the file of that nameWhy this is rightIn an ignore file a line starting with | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit to src/!x.txt under an input src/** runs the task againWhy this is rightA file may begin with | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit to a file whose name ends in a space runs the task againWhy this is rightA name may end in a space, and such files turn up from careless saves on any system. Ignore-file parsing and line trimming both strip it, after which the runner looks up a different name and drops the file. Its edits then change no key. A file the glob matches must stay in the key with its exact name. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit to a file whose name starts with a space runs the task againWhy this is rightGit prints a name starting with a space as is, right after a status column. A runner that trims each line or splits on runs of white space drops the space and looks up a file that does not exist. The real file then drops out of the key. Its edits must still run the task. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A new untracked file whose name ends in a space runs the task againWhy this is rightUntracked files reach a runner through git’s status listing, where a trailing space is easy to lose. A runner that trims the line keys a name that does not exist, or none at all. The new file is a real input the task reads. It must run the task again. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/a.txt does not key a file named src/aXtxtWhy this is rightIn a glob a | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/a+.txt keys a+.txt, and not aa.txtWhy this is rightOutside extended globs | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/$id^.txt keys the file with $ and ^ in its nameWhy this is rightRoute files such as | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit to an input with a 250-character name runs the task againWhy this is rightFile systems allow names up to 255 bytes, and generated files reach that length. A runner that truncates names or builds a fixed-size buffer for them loses the file. Its edits then change no key. A long name is still a name. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit forty directories deep under src/** runs the task againWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Deleting an empty input file runs the task againWhy this is rightAn empty file and no file are different inputs: a task can test whether the file exists. A runner that keys only file contents sees the same nothing before and after, and replays. Marker files such as | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Deleting one of two inputs with the same content runs the task againWhy this is rightTwo files can hold the same bytes. A runner that keys the set of contents rather than each path with its content sees no change when one copy goes. The task, which reads both, would replay output that still includes the deleted copy. Each file is an input of its own. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Adding a copy of an input under a new name runs the task againWhy this is rightA new file with the same bytes as an old one is still a new input. A runner that keys only distinct blobs sees nothing new, since git stores both under one object. The task reads both and its output doubles. It must run again. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
With no line-ending rule, turning LF into CRLF runs the task againWhy this is rightWithout a | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
After staging an edit and undoing it on disk, the build holds the bytes on diskWhy this is rightThe index can hold bytes the work tree does not. A task reads the work tree, so its key must too. A runner that takes the index’s blob for a staged file replays the output built from the staged edit, though the disk went back to the first state. The output must match the disk. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A new file staged and then deleted from disk is no inputWhy this is rightAfter | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A file removed with git rm and written again with new bytes runs the task againWhy this is rightAfter | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Committing an edit and undoing the commit with git reset --soft lets the build replayWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit a git clean filter strips from the blob still runs the task againWhy this is rightA clean filter, as nbstripout uses for notebook outputs, rewrites a file on its way into git, so an edit to the stripped part leaves the blob and | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under the ident attribute, an edit inside $Id: … $ runs the task againWhy this is rightThe | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under status.showUntrackedFiles=no, a new input file runs the task againWhy this is rightLarge repos set | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under status.showUntrackedFiles=normal, a file in a new directory runs the task againWhy this is rightWith | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Replacing an input directory with a file of the same name runs the task againWhy this is rightThe files under the directory are gone and a new file stands in their place. A runner that keyed the directory by the paths git listed, then fails to stat the new file as a file, can key the same before and after. The task now reads one file where it read a tree. It must run again. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Moving an input into a new subdirectory with the same name runs the task againWhy this is rightA move changes the path while the bytes stay. A runner that keys only file names, not their directories, keys | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A negation !src/*.gen.txt does not take back src/deep/x.gen.txtWhy this is rightA single | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A negation !src/**/*.snap takes back snapshots at every depthWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A negation !src/gen/** leaves src/gen2 keyedWhy this is rightA negation of | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A negation !src/**/.* takes back dotfiles and keeps the rest keyedWhy this is rightEditor and tool state such as | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A negation !src/[0-9]*.txt takes back files starting with a digit onlyWhy this is rightA class in a negation narrows it the same way as in a positive pattern. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Deleting a file a negation takes back lets the build replayWhy this is rightA file the inputs take back is not keyed, so its deletion changes nothing the task reads. Deletions often reach a runner by a separate path, git’s list of removed files, and a runner that skips its negations there reruns for nothing. The stored output is still right. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A new untracked file that a negation takes back lets the build replayWhy this is rightNew files reach a runner through git’s untracked listing, a different path from tracked ones. A runner that applies negations only to tracked files keys the new one, and reruns on every scratch file the user drops in. The negation names it, so nothing the task reads changed. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A new file in a new directory under a negated tree lets the build replayWhy this is rightGit lists a new directory as one entry until asked to expand it. A runner that tests the negation against that entry only, not the files inside, may key them. Each new file under | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A root input .*rc keys a dotfile at the workspace rootWhy this is rightTool configs at the root, | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A root input {a,b}.cfg keys both root filesWhy this is rightA brace in a root input stands for its alternatives, as in a project input. A runner that walks root inputs with a simpler matcher than project inputs may take the braces literally. Edits to | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Deleting a file a root input glob matched runs the task againWhy this is rightA root glob keys every root file it matches, and one going away changes what the task reads. A runner that keys root files only when they exist, without a trace of the list, can key two files and then one file alike only by luck. The task here concatenates the root files, so its output changes. It must run again. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A root input naming a file in the task’s own project keys it beyond the project inputsWhy this is rightA root input is a workspace path, and nothing stops it pointing into the task’s own project, at a file its project inputs leave out. A runner that drops root inputs falling inside the project, assuming the project inputs cover them, loses the file. Its edits then replay. Both lists add up. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
With two key commands, a change in what the second prints runs the task againWhy this is rightEach key command is its own input. A runner that keys only the first, or keeps one answer for the whole list, misses a change in the second. The task then replays output built for the old answer. Every listed command keys the task. | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | Nx passes | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
Key commands printing a and bc, then ab and c, run the task againWhy this is rightTwo answers glued together without a separator read the same for | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | Nx passes | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
A change in one task’s key command leaves a task with another key command replayedWhy this is rightA key command keys the task that declares it, not the workspace. A runner that pools every key command into one shared value reruns all tasks whenever any answer changes. Here | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | Nx passes | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
A key command printing a megabyte that changes only in its last byte runs the task againWhy this is rightA key command may print a long listing, such as every installed package. A runner that keys only a prefix of the answer, or truncates it to fit a buffer, misses a change at its end. The task then replays output built for the old answer. The whole answer is the input. | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | Nx passes | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
A change in a dependency’s key command runs the dependant againWhy this is rightA dependency’s key is part of its dependant’s key, whatever made it change: a file, a variable or a key command’s answer. Here the dependency’s output follows the answer and the dependant copies it. A runner that folds only upstream files replays the dependant with the old copy. The whole upstream key cascades. | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | Nx passes | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
Under gen/ and !gen/keep.txt in .gitignore, keep.txt stays ignored and its edits replayWhy this is rightGit cannot re-include a file whose parent directory is excluded, so | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
Under gen/* and !gen/keep.txt in .gitignore, keep.txt is an inputWhy this is right
| vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A .gitignore rule deep/x.txt ignores only that path below it, not a deeper deep/x.txtWhy this is rightA rule with a slash in the middle is anchored to the directory of its .gitignore, so | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A .gitignore rule /x.txt ignores the file beside it, not a deeper x.txtWhy this is rightA leading slash anchors a rule to its .gitignore’s directory. | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A .gitignore rule written x.log with a trailing space still ignores x.logWhy this is rightGit strips trailing spaces from ignore rules, so | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A .gitignore rule \#lock ignores the file named #lockWhy this is rightIn .gitignore | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A .gitignore rule \!scratch ignores the file named !scratchWhy this is rightA rule starting with | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A .gitignore rule cache/ leaves a file named cache an inputWhy this is rightA trailing slash makes a rule match only directories, so | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A .gitignore rule a/**/t.log ignores t.log deep under a and keeps b/t.log an inputWhy this is rightA | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A .gitignore rule [ab].log ignores a.log and keeps c.log an inputWhy this is rightIgnore rules take bracket classes like globs do. | vx passes | ✗Turbo Step 3: ran a#build, expected it replayed or left out | Nx passes | moon passes | ✗Nix Step 3: ran a#build, expected it replayed or left out | ✗Vite Task Step 3: ran a#build, expected it replayed or left out |
A committed file a later .gitignore rule names is still an inputWhy this is rightIgnore rules apply only to untracked files: once committed, a file stays tracked whatever .gitignore says later. Git still reports its edits, and the task reads it. A runner that filters every path through the ignore rules drops it from the key, and its edits replay. Tracked beats ignored. | vx passes | Turbo passes | ✗Nx Step 5: did not run a#build | moon passes | Nix passes | Vite Task passes |
With ident set in .git/info/attributes, an edit inside $Id: … $ runs the task againWhy this is rightAttributes can live in | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Making an input read-only for others (0644 to 0640) lets the build replayWhy this is rightGit records only whether a file is executable, and a task reading the file sees the same bytes. A umask or a copy tool changes other permission bits all the time. A runner that keys the whole mode reruns after such a copy for nothing. The executable bit is the one mode a build can tell from its output. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Undoing an edit to a dependency replays both it and its dependant from the first runWhy this is rightOnce the dependency’s files are back as they were, every key in the chain is what the first run computed, and both results are stored. A runner whose dependant key holds something run-specific, such as a dependency’s output timestamps, rebuilds the dependant for nothing. Keys follow inputs, so the revert hits all the way down. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run app#build |
Editing a dependency two levels down runs the top project again, though the middle one’s output reads the sameWhy this is rightKeys cascade by inputs: a change anywhere upstream changes every key below it. Here the middle project’s output does not show the change, but the top project reads the bottom one’s output directly. A runner keying a dependant only by its direct dependencies’ outputs replays it with the old bytes. Folding upstream input keys catches it. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run app#build |
A root input .config/** keys files under a dot directory at the rootWhy this is rightShared tool settings often live in a dot directory at the root, and a root input names it. A walker that skips dot directories at the root keys nothing there. Edits then replay output built under the old settings. A pattern that names the dot directory must walk it. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A file in a new untracked directory under a root input glob runs the task againWhy this is rightGit lists a new directory as one entry until asked to expand it. A runner that expands untracked directories only inside projects keys nothing for a new root directory. The task reads the new file, so its output changes. It must run again. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A Unix socket left under an input glob neither hangs nor fails the runWhy this is rightDev servers, language servers and test runners leave socket files behind in the tree they work in. A socket has no bytes to hash; opening it to read blocks or fails. The run should key the real files around it and go on, and replay when nothing else changed. | vx passes | Turbo passes | Nx passes | moon passes | ✗Nix Step 2: exited 1, expected success | Vite Task passes |
A project input and a root input with the same name each key the taskWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A run over files whose timestamps changed leaves git’s index file as it wasWhy this is rightAsking git which files changed refreshes and rewrites | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A command that keys a task gives the same answer when the run starts inside the projectWhy this is rightA key command such as | vx passes | –Turbo: N/A Turborepo inputs are files and variables, never a command’s output. | Nx passes | moon passes | –Nix: N/A Evaluation reads files and variables, never a command’s output. | –Vite Task: N/A Vite Task inputs are files and variables, never a command’s output. |
In a workspace that is not a git repository, an edit to a file .gitignore names replays the taskWhy this is rightA source tarball or a Docker build context often keeps its | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | ✗Turbo Step 4: ran a#build, expected it replayed or left out | Nx passes | ✗moon Step 4: ran a#build, expected it replayed or left out | ✗Nix Step 4: ran a#build, expected it replayed or left out | ✗Vite Task Step 4: ran a#build, expected it replayed or left out |
In a one-package repository, an edit outside the task’s inputs replays and an edit inside runs itWhy this is rightWhen the project is the whole repository, every file of the repository is a file of the project. A tool that keys the root package by everything under it reruns on a README edit. One that keys nothing replays a stale build after a source edit. The declared inputs decide, as they do for a member. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit in a library the root depends on reruns the root’s task and leaves an unrelated member replayedWhy this is rightTurborepo puts the root’s workspace dependencies in the global hash, so touching | vx passes | ✗Turbo Step 3: ran another#build, expected it replayed or left out | Nx passes | moon passes | Nix passes | ✗Vite Task Step 3: did not run root#build |
A root file one project’s task reads does not rerun another project that reaches a dependency without the taskWhy this is right
| vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
In a one-package repository, an edit in a fixture folder that holds its own package.json runs the task reading itWhy this is rightTest fixtures are often small packages, each with a package.json, inside a repository that lists no workspaces. Such a folder is not a project, so its files belong to the package around it. A tool that takes every package.json as a project boundary drops the fixture from the task’s inputs and replays tests built from the old fixture. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
With a hundred new files named with spaces under the inputs, editing one of them runs the task againWhy this is rightGit quotes and splits a long status listing in ways a careless parser gets wrong, and spaces in names are where it breaks first. Turborepo’s test counts that a hundred untracked spaced names all reach the task’s inputs. A tool that loses some of them replays a stale build when one of the lost files changes. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An edit in a member the root package does not depend on replays the root’s task that waits on its dependenciesWhy this is rightThe root’s build waits on | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
Under a gitignored input directory, a deleted file, a moved folder and a deleted folder each run the task againWhy this is rightGenerated directories are gitignored, so git cannot tell the tool what changed in them; the tool has to look. A file gone, a folder renamed and a folder removed each change what the task reads. Moving the folder back restores the exact inputs of an earlier run, so that run’s result replays. | vx passes | Turbo passes | ✗Nx Step 5: did not run a#build | ✗moon Step 5: did not run a#build | Nix passes | ✗Vite Task Step 9: ran a#build, expected it replayed or left out |
An input src/data{,.snap} keys both src/data and src/data.snapWhy this is rightAn empty brace alternative means the name with nothing added, so | vx passes | ✗Turbo Step 1: exited 1, expected success | Nx passes | ✗moon Step 1: exited 1, expected success | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
Negations through @scope and a+b directories leave their files out of the keyWhy this is rightA leading | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A task with ten input globs reruns when only the tenth matches the editWhy this is rightEvery input a task declares counts, however long the list is. A tool that shortens or merges a long list of patterns can drop one, and an edit only that one matches then replays a stale build. A file none of the ten names must still leave the task replayed. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
A negation !**/snap/** takes back a folder of that name at the top and deep downWhy this is rightA leading | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
In a workspace that is not a git repository, a new file under the inputs runs the task againWhy this is rightWithout git there is no list of tracked files to start from, so the tool must walk the input globs itself. A walk done once and remembered, or one that hashes only files it saw before, misses the new file. The task then replays a build that never read it. | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | Turbo passes | Nx passes | ✗moon Step 3: ran a#build, expected it replayed or left out | Nix passes | Vite Task passes |
In a workspace that is not a git repository, deleting an input runs the task againWhy this is rightA deleted input changes what the task reads, so its result changes too. Without git the tool learns of the deletion only by walking the inputs again. A tool that keys only the files still there and remembers nothing of the old set can miss that one went. | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
In a workspace that is not a git repository, making an input executable runs the task againWhy this is rightGit records the executable bit for the files it tracks, and a tool keying files by reading them must record it too. A script that becomes executable changes what a task that runs or packs it produces. Hashing contents alone replays the build of the plain file. | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | ✗Turbo Step 4: did not run a#build | ✗Nx Step 4: did not run a#build | moon passes | Nix passes | ✗Vite Task Step 4: did not run a#build |
In a workspace that is not a git repository, pointing an input link at another file runs the task againWhy this is rightA link under the inputs decides which file the task reads through it. Without git the tool must read the link itself, not only list it. A tool that keys the link’s name and nothing else replays the build of the old target. | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | Turbo passes | Nx passes | moon passes | Nix passes | ✗Vite Task Step 5: did not run a#build |
In a workspace that is not a git repository, editing a file outside the inputs replays the taskWhy this is rightWithout git a tool may fall back to hashing the whole project directory. The inputs still say what the task reads, and a README beside the sources is not among them. Rerunning on every edit to it throws the cache away exactly where git is missing, in a tarball or a container build. | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | Turbo passes | Nx passes | ✗moon Step 4: ran a#build, expected it replayed or left out | Nix passes | Vite Task passes |
In a workspace that is not a git repository, renaming an input runs the task againWhy this is rightA file’s name is part of what a task reads: a bundler emits it, a test runner reports it, a glob orders by it. Hashing only the bytes of each file, without its path, makes the renamed tree look unchanged. The task then replays a build that names the old file. | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
In a workspace that is not a git repository, editing a dotfile under the inputs runs the task againWhy this is rightGit lists dotfiles like any other file, so a tool keying by git sees them. A walk of the file system written by hand often skips names starting with a dot, and | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
In a workspace that is not a git repository, a new empty folder under the inputs replays the taskWhy this is rightInput globs name files, and an empty folder adds none. With git the folder is invisible, since git tracks files only. A walk of the file system that keys directories as entries reruns the task here, so the same sources key differently with and without git. | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | Turbo passes | Nx passes | ✗moon Step 4: ran a#build, expected it replayed or left out | Nix passes | Vite Task passes |
Swapping an input for a link to a file of the same bytes runs the task again, and swapping it back replaysWhy this is rightGit, a tar archive and a Nix store all record a link as a link. A task that copies, packs or lists its sources makes something different from a link than from a file, though reading through it gives the same bytes. Putting the plain file back is the first tree again, so its build replays. | vx passes | ✗Turbo Step 3: did not run a#build | ✗Nx Step 3: did not run a#build | ✗moon Step 3: did not run a#build | Nix passes | ✗Vite Task Step 6: ran a#build, expected it replayed or left out |
Replacing an input with a hard link to another file of the same bytes replays the taskWhy this is rightDeduplicating tools, package managers and backups replace equal files with hard links. The file is still a regular file with the same bytes and mode, only its inode and link count changed. A key that reads anything beyond the bytes and mode reruns the task for a tree no task can tell apart. | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
In a workspace that is not a git repository, a folder link back into the inputs neither hangs nor fails the runWhy this is rightWith git the tool reads a list of files, and a link is one entry. Without git it walks the folders itself, and a walk that follows a link back to its own parent never ends. The run must key the files once and finish, and an edit must still run the task again. | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
In a workspace that is not a git repository, a new file in a project that is a repository of its own runs its task againWhy this is rightA vendored project often keeps its own | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
In a workspace that is not a git repository, editing a workspace-level file a task declares runs it againWhy this is rightA shared config at the workspace root, such as a | –vx: N/A vx finds the workspace root inside a git work tree and keys tracked files by git, so a folder that is not a repository is refused. | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |
An input src/a}{b.txt keys the file of that nameWhy this is rightA | vx passes | ✗Turbo Step 1: exited 1, expected success | ✗Nx Step 1: exited 1, expected success | moon passes | Nix passes | ✗Vite Task Step 1: exited 1, expected success |
Editing the patch applied to an installed package, and installing, runs the task reading it againWhy this is rightA patch is part of the installed package: after the install, the files the task reads hold the patched bytes. The lockfile names the patch file but not what it says, so a key built only from the lockfile sees nothing change. The task must run again, or it replays a build of the old patch. | vx passes | Turbo passes | ✗Nx Step 8: did not run a#build | ✗moon Step 8: did not run a#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 8: did not run a#build |
Removing an external dependency from one project runs that project’s task again, and no otherWhy this is rightThe project that dropped the package no longer has it installed, so what its task reads changed. The project that still takes the same package installs exactly what it did before. Rerunning it, or every project, because the lockfile lost an entry wastes the run on work that cannot differ. | vx passes | Turbo passes | ✗Nx Step 4: did not run a#build | ✗moon Step 4: did not run a#build | –Nix: N/A Nix reads no package.json or lockfile and installs nothing into node_modules: what a build depends on is written in Nix. | ✗Vite Task Step 4: did not run a#build |
In a git worktree under a folder the main checkout ignores, an input edit runs the task againWhy this is rightAgents and scripts keep extra worktrees in a folder like | vx passes | Turbo passes | Nx passes | moon passes | Nix passes | Vite Task passes |