Skip to content
GitHubBlueskydev.toRSS

// 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 cases
vx97%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
CasevxTurboNxmoonNixVite Task
Editing a root file a workspace-root task reads runs it again
Why this is right

The 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.

5q0z1y · inputs/root-task-reads-root-files · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Editing a member’s file leaves a workspace-root task over ** replayed
Why this is right

A 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 ** does not read the members’ files. Rerunning it on every member edit would rebuild the root on nearly every change in the workspace.

6c2dvx · inputs/root-task-ignores-members · efficiency
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 again
Why this is right

The 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.

mqfudq · inputs/root-glob-over-nested-repo · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A second run over an unchanged tree replays instead of running
Why this is right

When 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.

jmuhez · inputs/unchanged-replays · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Editing an input runs the task again
Why this is right

A 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.

lxdt5h · inputs/edit · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A same-size edit right after a commit runs the task again
Why this is right

Change 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.

04n5zo · inputs/same-size-edit · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A new file under an input glob runs the task again
Why this is right

A glob names a set of files, and adding a file changes that set. A build that concatenates, bundles or tests everything under src/ gives different output once a new file exists. Keying only on the files seen before would replay a bundle that is missing the new module.

7lmepl · inputs/new-file · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Deleting an input runs the task again
Why this is right

Removing 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.

mlvfjy · inputs/deleted-file · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Renaming an input runs the task again
Why this is right

A 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.

0vij8e · inputs/renamed-file · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit deep in a nested input directory runs the task again
Why this is right

A 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.

gix3tz · inputs/nested-dir · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit to an input named with spaces, $ and quotes runs the task again
Why this is right

File names with spaces, quotes or $ are legal and occur in real repos, for example among assets and fixtures. If such a name is mangled when it is listed, quoted or passed through a shell, the file drops out of the key. Edits to it then never rerun the task, and the build ships its old content.

abi6mi · inputs/odd-file-name · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit to an input with a non-ASCII name runs the task again
Why this is right

Non-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.

wcrfa2 · inputs/unicode-file-name · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Undoing an edit replays the first run’s outputs, not the edited ones
Why this is right

A 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.

ftjt41 · inputs/revert-replays-old · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A file outside the task’s inputs changes nothing
Why this is right

Declared 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.

f4d48o · inputs/outside-inputs-ignored · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A file a ! input pattern takes back changes nothing
Why this is right

A ! pattern is the user stating that a file does not affect the task. Notes, another tool’s fixtures or generated docs often sit inside a source folder. Ignoring the exclusion reruns the task on edits the user has said cannot change its output, and the cache loses its value for that folder.

34g7xo · inputs/negated-glob · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A gitignored file under an input glob changes nothing
Why this is right

Files 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.

dd7w6q · inputs/gitignored-not-input · efficiency
vx passes
✗

Turbo Step 5: ran a#build, expected it replayed or left out

Nx passesmoon 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 input
Why this is right

A 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.

ow5n6a · inputs/untracked-file · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Making an input executable runs the task again
Why this is right

The 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 chmod +x. The cache then replays an output whose script is not executable, and the failure shows only when someone tries to run it.

ih56uy · inputs/executable-bit · correctness
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 again
Why this is right

The 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.

nm1cp6 · inputs/executable-bit-behind-link · correctness
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 again
Why this is right

After 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.

zfnlc9 · inputs/dependencies-swapped-rerun-consumer · correctness
vx passesTurbo passesNx passesmoon passesNix 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 output
Why this is right

A 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.

h0a8cc · inputs/dependency-edit-cascades · correctness
vx passesTurbo passesNx passesmoon passesNix 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 it
Why this is right

A 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.

w80okg · inputs/sibling-untouched · efficiency
vx passesTurbo passesNx passesmoon passesNix 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 dependents
Why this is right

A 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.

u359co · inputs/dependency-non-input-edit · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A project nested inside another keeps its files out of the outer project’s inputs
Why this is right

A project nested in another’s folder owns its own files. If the outer project’s ** also counts them, every edit inside the inner project reruns the outer one too. Project boundaries are what keep one team’s change from invalidating another team’s cache.

db5cnd · inputs/nested-project-excluded · efficiency
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 again
Why this is right

A 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.

rk65d7 · inputs/symlink-retarget · correctness
vx passesTurbo passesNx passesmoon 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 changes
Why this is right

When 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.

vfjhu1 · inputs/unlisted-file-never-stale · correctness
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 changes
Why this is right

A 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: MODE moves from dev to prod and a dev build ships as prod. Rerunning the task, or hiding the variable from it, both keep the output true.

6asagn · inputs/unlisted-env-never-stale · correctness
vx passesTurbo 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 passesVite Task passes
A task that lists no inputs runs again when its project’s sources change
Why this is right

Whatever 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.

4glwzh · inputs/default-inputs-edit · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit deep under a brace alternative ending in ** runs the task again
Why this is right

A brace stands for its alternatives, so {src/**,lib/**} means src/** and lib/**, each at full depth. A tool that matches ** inside a brace only one level deep misses nested files. An edit deep under src then replays output built from the old file.

o5g8g6 · inputs/brace-globstar-alternative · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input {src,lib} keys every file under both directories
Why this is right

Each brace alternative here names a directory, and a directory input keys its whole tree. {src,lib} should mean the same as listing src and lib. A tool that matches only the directory entries keys nothing inside, and edits under them replay stale output.

2mkmwy · inputs/brace-of-directories · correctness
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 src
Why this is right

./src and src name the same directory, inside a brace or not. A tool that compares the alternative to paths without dropping the ./ matches nothing. Edits under src then change no key, and the old output replays. Writing ./ is a style choice and must not change which files are keyed.

4qnz0b · inputs/brace-dot-slash-alternative · correctness
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 top
Why this is right

. is the project directory, so {.,src}/*.txt covers .txt files at the project’s top and in src. A tool that drops or mismatches the . alternative misses the top-level file. Edits to it then replay a stale result. The pattern is valid and common in shell-style globs.

rsnelr · inputs/brace-dot-alternative · correctness
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 nothing
Why this is right

A 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.

kp2tnw · inputs/brace-unnamed-file-ignored · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A , inside a class in a brace alternative is part of the name, not a cut
Why this is right

Inside a character class, a , is a character to match, not a brace separator. A parser that splits on it first breaks a[,]b into two broken alternatives. The file a,b.txt then matches nothing, and edits to it replay stale output. Classes are parsed before alternatives are cut.

xv0kaq · inputs/brace-class-comma · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A { inside a class in a brace alternative is part of the name
Why this is right

Inside a character class, { is a character to match, not the start of a nested brace. A parser that reads it as syntax mangles the pattern. The file a{b.txt drops out of the key, and its edits replay a stale result. Classes are parsed before braces, so their contents are plain characters.

dp9bws · inputs/brace-class-open-brace · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A ! brace alternative with a , in a class takes that file back
Why this is right

A negation is parsed the same way as a positive glob, so a[,]b still names a,b.txt. If the negation is split at the comma, it matches nothing and the file stays an input. Every edit to it then reruns a task the user said it does not affect. Negations follow the same grammar as the globs they narrow.

0eqzuo · inputs/brace-class-comma-negated · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input src/\{b\}.txt keys the file named with the braces
Why this is right

A backslash escapes a brace, so src/\{b\}.txt names the file {b}.txt literally. Braces in file names are rare but legal. A tool that drops the escapes keys b.txt instead, and edits to the real file replay a stale result. The escape is the only way to name such a file in a glob.

ylzwid · inputs/escaped-brace-literal · correctness
vx passesTurbo passesNx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
An input src/\{b\}.txt does not key src/b.txt
Why this is right

An escaped brace is literal text, not an alternative, so src/\{b\}.txt does not name src/b.txt. The escape is how the user says exactly which file they mean. Keying the other file reruns the task when nothing it reads changed. Reading it as a brace undoes the escape.

lo65nc · inputs/escaped-brace-not-alternative · efficiency
vx passesTurbo passesNx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
An input written ./src/** keys the files under src
Why this is right

./src/** and src/** name the same files; the ./ prefix is a common way to write a relative path. A tool that matches the glob against paths without ./ finds nothing. The key then never moves, and every edit under src replays the old output.

sg5xyj · inputs/dot-slash-input · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#build

moon passesNix passesVite Task passes
A negation written !./gen/** takes gen back out of the inputs
Why this is right

A negation written !./gen/** takes back the same files as !gen/**. If the ./ makes it match nothing, gen stays in the inputs. Every regeneration then reruns a task the user said does not read it. Generated files are often the very thing such a negation is written to exclude, so the rerun repeats on every generator run.

r1q1w9 · inputs/dot-slash-negation · efficiency
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 passesNix passesVite Task passes
An input */. names each top directory’s whole tree
Why this is right

src/. is the directory src itself, so */. names each top directory and its whole tree. A tool that treats the trailing . as a literal file name matches nothing. The task’s key then ignores every source edit and replays the old output. . means the directory in any path.

9i802c · inputs/trailing-dot-directory · correctness
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 back
Why this is right

A negation !gen/. names the directory gen and takes its whole tree back. If the trailing . makes the negation match nothing, generated files stay in the key. Every regeneration then reruns a task the user excluded them from. Its positive form keys the whole tree, so its negation takes the whole tree back.

2jv8dy · inputs/trailing-dot-negation · efficiency
vx passesTurbo passesNx passesmoon passes
✗

Nix Step 1: exited 100, expected success

Vite Task passes
An input src/**/ (a trailing slash) keys the files under src
Why this is right

A trailing slash marks a pattern as a directory, so src/**/ covers the directories under src and the files in them. A tool that matches only directory entries keys no file. The key never moves, and edits under src replay stale output. The slash narrows the match to directories; it does not empty it.

550srj · inputs/trailing-slash-pattern · correctness
vx passesTurbo passesNx passesmoon passesNix passes
✗

Vite Task Step 1: exited 1, expected success

An input naming a directory, src, keys every file in its tree
Why this is right

A user who names a directory, src, means the files in it. A tool that treats the name as a glob matching only the directory entry keys nothing inside. Every edit under src then replays the old output, with no warning. Naming a directory is the simplest input there is, so it must mean its contents.

tcs1yu · inputs/literal-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passes
✗

Vite Task Step 3: did not run a#build

An input naming a directory with a trailing slash, src/, keys its tree
Why this is right

src/ is a common way to name a directory, and it means every file in its tree. Read as a bare glob, it matches no file and the key never moves. Every edit under src then replays the old output under a green run. The slash only says the path is a directory; it does not change which files are in it.

2yb7gp · inputs/literal-directory-trailing-slash · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A negation naming a directory, !gen, takes its whole tree back
Why this is right

A negation naming a directory, !gen, takes back every file in that tree, just as the positive form keys it. If it only removed the directory entry, the generated files would stay in the key. Each regeneration would then rerun a task the user excluded them from.

5iomu2 · inputs/negated-literal-directory · efficiency
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 names
Why this is right

A character class [ab] matches one of the listed characters, as in any glob. app/[ab]/*.js therefore covers app/a and app/b. A tool that reads the brackets literally keys nothing, and edits to those files replay stale output. Classes are part of every common glob syntax.

hpip29 · inputs/bracket-class · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input app/[ab]/*.js does not key a directory the class leaves out
Why this is right

A character class matches only the characters it lists, so app/[ab]/ leaves app/c out. A file outside the class is not what the task reads. Keying it reruns the task on edits that cannot change its output. The class is how the user narrows the set, and the cache should honour it.

ppi1d3 · inputs/bracket-class-excludes · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input app/\[id\]/** keys the route directory named [id]
Why this is right

File-system routers name directories with brackets, such as app/[id], and an escaped \[id\] names that directory literally. Read as a class, the pattern matches app/i/… and never the route. An edit to the route then replays the old output. Without the escape, a bracketed route cannot be named at all.

fm6le9 · inputs/escaped-route-directory · correctness
vx passesTurbo passesNx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
An input app/\[id\]/*.js does not key the sibling app/i a class would match
Why this is right

An escaped \[id\] names the literal directory [id], not a class of the letters i and d. A sibling app/i is not what the task reads. Keying it reruns the task on edits that cannot change its output. The escape is how the user says the brackets are part of the name, and the match should honour that.

wo4177 · inputs/escaped-route-not-class · efficiency
vx passesTurbo passesNx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
A ! input listed before the glob it narrows still takes its file back
Why this is right

Inputs 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.

04vcij · inputs/negation-listed-first · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A task whose inputs cover its own outputs still replays on the next run
Why this is right

A broad input such as ** often covers the task’s own output directory. Keying a task on what it wrote moves its key after every run, so it never replays. The cache then fills with entries nothing uses, and every run does the full work. Declared outputs are what the task makes, never what it reads.

d8nhpz · inputs/own-outputs-not-inputs · efficiency
vx passes
✗

Turbo Step 2: ran a#build, expected it replayed or left out

Nx passesmoon passesNix 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 other
Why this is right

Ignored files are local state, but a file committed to the repository is source, whatever directory it sits in. An install under node_modules is untracked; a committed test fixture there is not. Skipping it by directory name replays tests against the old fixture.

h8k7rt · inputs/tracked-node-modules · correctness
vx passesTurbo 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 right

A committed file under a dot directory like .github is part of the repository, and ** covers it. Shell-style globbing skips dot directories unless asked. A task that reads such a file would then replay stale output after it changes. ** in an input means every file under it.

o716j7 · inputs/dot-directory-input · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A dotfile under an input glob (src/.env) is an input
Why this is right

A dotfile such as src/.env under an input glob is a file the task can read. Shell-style globbing skips dotfiles by default, and a tool that copies that rule drops it from the key. Editing it then replays output built from the old values. Dotfiles are often config, the files most likely to change the output.

xue5gm · inputs/dotfile-input · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A committed tsconfig.tsbuildinfo is an input of **
Why this is right

A build-state file like tsconfig.tsbuildinfo is ignored only when the repository ignores it; committed, it is source. A tool that skips it by name second-guesses the repository. Edits to it then replay a stale result, and nothing says the file was skipped.

i4btvt · inputs/tracked-build-state · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A file whose name sorts after every other is still an input
Why this is right

A 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.

nkfd9v · inputs/highest-sorting-name · correctness
vx passesTurbo passesNx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
Projects named like pkg-b, pkg.c and pkg0 keep their files out of pkg’s inputs
Why this is right

A project’s inputs stop at its own directory, and pkg-b, pkg.c and pkg0 are other directories that only share a name prefix. A prefix match on paths pulls their files into pkg’s key. Edits in those projects then rerun pkg for nothing. Paths must be compared by whole segments, not by string prefix.

zb1304 · inputs/prefix-named-siblings · efficiency
vx passes
✗

Turbo Step 3: ran pkg#build, expected it replayed or left out

Nx passesmoon passesNix 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 input
Why this is right

Only a nested project’s own directory is cut out of the outer project. inner-extra merely starts with the nested project’s name, so it stays the outer project’s input. A prefix match cuts it out too, and edits there replay the outer task’s stale output.

0g0ctt · inputs/nested-project-prefix-sibling · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
The outer project’s own directory beside a nested project stays its input
Why this is right

Cutting a nested project out of its parent must remove only that directory. lib sits at the same depth as inner and belongs to the outer project. A tool that drops more than the nested directory loses it from the key, and edits there replay stale output.

30vdho · inputs/nested-project-same-depth · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A gitignored file named outright in the inputs is an input
Why this is right

A 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.

xnun5a · inputs/gitignored-file-named · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#build

moon passesNix passesVite Task passes
A gitignored directory named outright in the inputs keys every file under it
Why this is right

A 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.

7lq73m · inputs/gitignored-directory-named · correctness
vx passesTurbo 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 again
Why this is right

A 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.

t39f6v · inputs/named-directory-appears · correctness
vx passesTurbo passesNx passesmoon passesNix passes
✗

Vite Task Step 3: did not run a#build

Creating a named input file that did not exist runs the task again
Why this is right

A 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.

8k84he · inputs/named-file-appears · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Input globs into directories that do not exist are no error
Why this is right

Inputs 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.

6j83f1 · inputs/glob-into-missing-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input fix* keys the files it matches, not the tree of a directory it matches
Why this is right

A glob like fix* matches names; a directory it happens to match is not an input of its whole tree, unlike a directory named outright. The task reads fix.txt, not the fixtures beside it. Keying that tree reruns the task on fixture edits it never reads.

043o6e · inputs/glob-matching-directory · efficiency
vx passesTurbo passesNx passesmoon passes
✗

Nix Step 3: ran a#build, expected it replayed or left out

Vite Task passes
Each ** in src/**/x/** spans any depth
Why this is right

Each ** in a pattern matches any number of directories. src/**/x/** must reach a file under src/d1/d2/x/y. A tool that limits one of the globstars to a single level misses deep files, and edits there replay stale output. Deep source trees are common, so the match must not stop early.

hfv4g3 · inputs/two-globstars · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input src/**/x/** does not key a file with no x directory above it
Why this is right

A pattern src/**/x/** requires an x directory somewhere in the path. A file with no x above it is not what the task reads. Matching it anyway, for example by collapsing the pattern to src/**, reruns the task on unrelated edits. The middle segment is what the user wrote to narrow the set.

anhrvj · inputs/two-globstars-narrow · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Two tasks of one project with different negations each key their own set
Why this is right

Inputs belong to a task, not a project: two tasks of one project can read different files. Here lint reads notes that build excludes. A tool that shares one task’s file set with the other leaves lint replaying output built from the old notes. Each task’s inputs are resolved on their own.

6ey37y · inputs/sibling-tasks-different-negations · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A sibling task keying a file does not pull it into a task that takes it back
Why this is right

Inputs belong to a task, so a file one task reads does not become another’s input. build excludes the notes that lint reads. If file sets leaked between sibling tasks, every notes edit would rerun the build for nothing. The order the tasks run in must not matter either.

ljs14f · inputs/sibling-task-negation-holds · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Editing a declared file at the workspace root runs the task again
Why this is right

Shared 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.

yg27ws · inputs/root-file-input · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A root file no root input names changes nothing
Why this is right

A 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.

74pkyb · inputs/root-input-undeclared-file · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A root input reaching into another project’s directory keys that file
Why this is right

A 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.

khz34o · inputs/root-input-into-sibling-project · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A gitignored file under a root input glob changes nothing
Why this is right

Ignored files are local state, and a broad root glob such as shared/** skips them like any other glob. An ignored scratch file in a shared directory is not part of the config. Keying it reruns tasks on local changes and gives the same commit different keys on different machines.

ozexc6 · inputs/root-input-gitignored · efficiency
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 back
Why this is right

A 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.

nsuqa2 · inputs/root-input-negation · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A root input naming a directory keys every file in its tree
Why this is right

A 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.

bneuc0 · inputs/root-input-bare-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passes
✗

Vite Task Step 3: did not run a#build

A gitignored root file named outright in the root inputs is an input
Why this is right

A 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.

lq8g9k · inputs/root-input-gitignored-named · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#build

moon passesNix passesVite Task passes
A root file the task writes is not its own input, though a root input glob covers it
Why this is right

A 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.

p878wm · inputs/root-output-not-own-input · efficiency
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 passesNix 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 outputs
Why this is right

A 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.

b7s3u4 · inputs/project-output-not-root-input · efficiency
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 passesNix 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 right

Escaped brackets in a root input name a literal directory such as [id], as they do in a project input. Read as a class, \[id\] matches i or d instead and never the route. Edits to the route then replay output built from the old page. The escape is how a bracketed name is written at all.

8ph6y3 · inputs/root-input-escaped-route · correctness
vx passesTurbo passesNx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
A variable keying an uncached dependency reruns its cached dependant when it changes
Why this is right

A 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 API_URL. If its key ignored the variable because it never caches, the dependant would replay output built for the old URL.

mr27g6 · inputs/uncached-upstream-env · correctness
vx passesTurbo 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 replay
Why this is right

An uncached dependency always runs, but its key is still defined by what it declares. With API_URL unchanged, that key is unchanged, so the dependant can replay. Treating every uncached task as changed would rerun its whole downstream tree on every run.

gyiawb · inputs/uncached-upstream-env-unchanged · efficiency
vx passes
✗

Turbo Step 2: ran b#build, expected it replayed or left out

Nx passesmoon passes
✗

Nix Step 1: exited 100, expected success

Vite Task passes
A root file keying an uncached dependency reruns its cached dependant when edited
Why this is right

An 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.

tw4i04 · inputs/uncached-upstream-root-file · correctness
vx passesTurbo 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 result
Why this is right

A 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.

zxkuin · inputs/uncached-upstream-unlisted-file · correctness
vx passesTurbo 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 replay
Why this is right

Empty 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.

1x8zyj · inputs/uncached-upstream-empty-inputs · efficiency
vx passes
✗

Turbo Step 2: ran b#build, expected it replayed or left out

Nx passesmoon passes
✗

Nix Step 1: exited 100, expected success

Vite Task passes
A file keying a same-project dependency reruns the task that depends on it
Why this is right

A dependency’s key carries its inputs to the tasks after it, inside one project as across projects. Here test lists only package.json and reads the fixtures through the fixtures task’s output. Only that dependency’s key can carry the fixture edit; without it, tests replay against old fixtures.

w0zqyz · inputs/same-project-dependency-key · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#test

moon passesNix passes
✗

Vite Task Step 3: did not run a#test

A file outside a same-project dependency’s inputs does not rerun its dependant
Why this is right

A file outside the dependency’s inputs, like fixtures.txt beside fixtures/, changes neither the dependency’s key nor the dependant’s. Both should replay. Rerunning on a name that only resembles an input wastes the run. Inputs are matched by path, not by name likeness, and the dependant inherits only the dependency’s key.

2wc7wu · inputs/same-project-dependency-outside · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A committed file another task declares as its output stays readable while that task runs
Why this is right

A tool that clears a task’s outputs before running it must not delete a committed file another task reads in parallel. Here index.json is both committed source and a declared output. Deleting it mid-run makes the reader fail or read nothing, a failure that depends on timing and is hard to reproduce.

9dx4ct · inputs/committed-file-under-running-output · correctness
vx passesTurbo passesNx passesmoon 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 current
Why this is right

The 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 a.txt and stores the new output under that key. A later run with the old source then replays output built from the new one, so the build ships text the source no longer holds.

n4i72w · inputs/formatter-rewrites-own-input · correctness
vx passesTurbo 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 changes
Why this is right

A 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.

faxqfz · inputs/named-dependency-output-cascades · correctness
vx passesTurbo passes
✗

Nx Step 4: packages/app/dist/out.txt is "A", expected "B"

moon passesNix 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 back
Why this is right

A key taken over the old bytes must not be stored with an output built from the new ones. Here another task edits src/a.txt while the reader runs, so the reader’s output reflects the edit but its key does not. Once the file is put back, that key matches again and replays the edit that is gone. A runner must re-check its inputs before storing.

hzuwhf · inputs/edited-mid-run-not-replayed · correctness
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 back
Why this is right

A 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.

hire4k · inputs/upstream-edited-mid-run-chain · correctness
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 again
Why this is right

A 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.

sa8rhs · inputs/runtime-output-change · correctness
vx passes
–

Turbo: N/A Turborepo inputs are files and variables, never a command’s output.

Nx passesmoon 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 replay
Why this is right

A 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.

gippkp · inputs/runtime-output-same · efficiency
vx passes
–

Turbo: N/A Turborepo inputs are files and variables, never a command’s output.

Nx passesmoon 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 task
Why this is right

Without 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.

qxifkp · inputs/runtime-command-fails · correctness
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 run
Why this is right

A 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.

lc9cv1 · inputs/runtime-shared-once · efficiency
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 removed
Why this is right

A 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 .env.local must then run the task again; otherwise the build keeps an old API address or a value from a file that no longer exists.

arf4xl · inputs/runtime-ignored-env-file · correctness
vx passes
–

Turbo: N/A Turborepo inputs are files and variables, never a command’s output.

Nx passesmoon 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 ran
Why this is right

A 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.

t8d5qz · inputs/runtime-reads-upstream-output · correctness
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 changes
Why this is right

A 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 src/a.txt changes, the build runs and the test must run too. Otherwise the test result replayed is for the old source, and a broken change passes.

xdp2r5 · inputs/reader-of-dependency-output · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A task reading a same-project dependency’s output replays when nothing changed
Why this is right

When 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.

b7iapr · inputs/reader-of-dependency-output-replays · efficiency
vx passes
✗

Turbo Step 2: ran a#test, expected it replayed or left out

Nx passesmoon passesNix 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 error
Why this is right

A 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.

7d0v8q · inputs/unsearchable-untracked-directory · correctness
vx passesTurbo passesNx passesmoon 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 result
Why this is right

An input list of only !vendor/** can be read as everything but vendor, or as nothing at all. Read as everything but vendor, the edit in src is an input and the task reruns. Read as nothing, the task stops tracking its own source and replays the old build after every edit. Refusing the list is fine; replaying is not.

zjnwpw · inputs/negation-only-never-stale · correctness
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 off
Why this is right

Two ! cancel out, so !!vendor/** keeps vendor and leaves ** intact. A tool that strips one ! and hands !vendor/** to a glob library inverts the set: only vendor stays keyed. An edit in src then replays the old build. Refusing the pattern as unclear is fine; dropping the sources is not.

uhbbs8 · inputs/double-negation-never-stale · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A directory named like an ignored one, my_node_modules, is an input
Why this is right

Skipping directories such as node_modules must match the whole name, not part of it. A directory called my_node_modules is ordinary source the user owns and the task reads. A tool that matches by substring drops it from the key, and edits there replay the old output.

8kj3q7 · inputs/node-modules-lookalike-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A project nested several directories down keeps its files out of the outer project’s inputs
Why this is right

A nested project owns its files at any depth, not only directly under the outer project. If the outer project’s ** counts them, every edit inside the nested project reruns the outer task as well. The outer task must still rerun when its own files change, which the last step checks.

1rh9ma · inputs/nested-project-deep-excluded · efficiency
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 it
Why this is right

Naming 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.

578sru · inputs/ignored-directory-named-skips-nested-project · efficiency
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon passesNix 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 it
Why this is right

Directory names are compared whole, not as text prefixes: genx is not inside gen. The genx folder is the outer project’s own source, named in its inputs. A tool that tests paths by string prefix treats it as part of a nested project at gen and drops it from the key, so edits there replay the old output.

95okdm · inputs/nested-project-sibling-accepted · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A glob over the whole project with the nested project taken back keys the rest
Why this is right

Taking a nested directory out with !gen/** must leave the rest of the project keyed, including genx beside it. The exclusion names one directory, not every name that starts the same way. A tool that matches the negation by prefix drops genx too, and its edits replay the old output.

3xku9v · inputs/nested-project-negated-accepted · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A nested project named pkg* does not take its sibling pkg-b out of the outer inputs
Why this is right

A nested project’s directory is a path, not a glob, even when its name holds *. Read as a pattern, pkg* matches pkg-b, so the outer project loses pkg-b from its inputs and edits there replay the old output. Names with glob characters are legal and must be matched literally.

o629sn · inputs/nested-project-glob-character-name · correctness
vx passesTurbo passesNx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
A root output inside the task’s own project is not its own input, though its inputs cover it
Why this is right

A file the task writes is its output, never its input, even when an input glob such as ** covers it. If the key includes it, each run changes the key of the next, so the second run misses. The task then reruns on every run and the cache never helps it.

tuwbhw · inputs/root-output-in-own-project-not-input · efficiency
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 passesNix 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 replays
Why this is right

A 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.

3342oz · inputs/own-output-named-as-input · efficiency
vx passes
✗

Turbo Step 2: ran a#build, expected it replayed or left out

Nx passesmoon passesNix 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 it
Why this is right

An input naming the directory gen covers what is inside it, not files whose names start with gen. A tool that matches by text prefix also keys gen-a.txt, a file the task never reads. Edits to that file then rerun the task for nothing, on every run that follows one.

zkopte · inputs/literal-directory-prefix-sibling · efficiency
vx passesTurbo passesNx passesmoon passesNix 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.txt
Why this is right

Naming 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 gen, so an edit to it must rerun the task. A tool that drops ignored files, or confuses gen with gen-notes.txt, replays the old output.

wv3ngy · inputs/ignored-literal-beside-prefix-sibling · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#build

moon passesNix passesVite Task passes
A key command reading a file an uncached dependency rewrites answers after it ran
Why this is right

A 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.

gp321t · inputs/runtime-after-uncached-upstream · correctness
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 again
Why this is right

A key command’s output is bytes, and every byte must count. Decoded as text, \351 and \350 both become the same replacement character, so the key does not change. The second value then replays the first value’s build. Refusing such output is fine; merging two values into one key is not.

sp4wqj · inputs/runtime-output-not-utf8 · correctness
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 rerun
Why this is right

Repository git settings are the user’s to choose and must not change what a task runner sees. A tool that parses the text of git status loses changes once colour, short format or quoted paths are on, or once a name holds quotes or a tab. Every edit then looks like no change, and the cache replays old output.

rcud7y · inputs/git-status-config-quoted-name · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit to a committed file inside the task’s own output directory runs it again
Why this is right

A 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.

xx8t9y · inputs/committed-file-under-own-output-dir · correctness
vx passesTurbo passesNx passes
✗

moon Step 4: packages/a/data/gen.json is "[\"a\"]", expected "[\"b\"]"

Nix passesVite Task passes
A skip-worktree input absent from disk, as a sparse checkout leaves it, reruns the task once it appears
Why this is right

A 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.

c40swp · inputs/sparse-path-materialised · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under * text=auto, changing an input from CRLF to LF runs the task again
Why this is right

Under * text=auto, git normalises line endings, so a CRLF file and its LF version are one blob to git. The task reads the bytes on disk, and those differ. A tool that keys on git’s blob id sees no change and replays the CRLF build, here a wrong byte count. Windows checkouts and editors switch endings all the time.

vezdd6 · inputs/crlf-to-lf-under-text-attribute · correctness
vx passes
✗

Turbo Step 4: packages/a/dist/out.txt is "10\n", expected "8\n"

Nx passesmoon passesNix passesVite Task passes
A root .gitattributes text rule reaches a run of one project: CRLF to LF runs it again
Why this is right

A root .gitattributes applies to every project, also when a run selects only one. git compares the file after that rule, so CRLF and LF read as one blob while the task reads different bytes. A tool that trusts git here, or reads attributes only from the selected project, replays the build made from the CRLF file.

c9tiqt · inputs/crlf-to-lf-under-root-attribute-scoped · correctness
vx passes
✗

Turbo Step 4: packages/a/dist/out.txt is "10\n", expected "8\n"

Nx passesmoon passesNix passesVite Task passes
A text rule in the user’s global git attributes file: CRLF to LF runs the task again
Why this is right

Text 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.

loq2zg · inputs/crlf-to-lf-under-global-attributes · correctness
vx passes
✗

Turbo Step 4: packages/a/dist/out.txt is "10\n", expected "8\n"

Nx passesmoon passesNix passesVite Task passes
Under * text=auto eol=lf, moving a CR to another line, same size, runs the task again
Why this is right

Under a text rule git compares a file after normalising its line endings. a\r\nb\n rewritten as a\nb\r\n has the same size and the same normalised blob, so git calls it clean and keeps the old stat in its index. The task reads different bytes. A tool that trusts git’s blob id, or its index stat, replays the first build.

olfjum · inputs/same-size-line-ending-swap-under-text-attribute · correctness
vx passes
✗

Turbo Step 4: packages/a/dist/out.txt is "a\r\nb\n", expected "a\nb\r\n"

Nx passesmoon passesNix passesVite Task passes
With core.autocrlf set, changing an input from CRLF to LF runs the task again
Why this is right

core.autocrlf makes git convert line endings, so it reports no change when CRLF becomes LF. The task reads the file on disk, whose bytes did change. A tool that trusts git here replays the CRLF build, and whether a developer gets a stale result depends on their own git config.

zb23ii · inputs/crlf-to-lf-under-autocrlf · correctness
vx passes
✗

Turbo Step 4: packages/a/dist/out.txt is "10\n", expected "8\n"

Nx passesmoon passesNix passesVite Task passes
With git's core.trustctime=false, a same-size edit that keeps its mtime runs the task again
Why this is right

With core.trustctime=false git ignores the change time, so a same-size rewrite that keeps the mtime looks clean to git. The task reads new bytes all the same. A tool that trusts git’s clean answer replays the old output. The setting is common where backup or indexing tools touch the change time.

qhfr9p · inputs/same-stat-rewrite-trustctime-false · correctness
vx passesTurbo passes
✗

Nx Step 4: packages/a/dist/out.txt is "AAAA", expected "BBBB"

moon passesNix passesVite Task passes
With git's core.checkStat=minimal, a same-size edit that keeps its mtime runs the task again
Why this is right

With core.checkStat=minimal git compares only size and whole-second mtime. A same-size edit with the same mtime then looks clean to git while the bytes differ. A tool that trusts git’s answer replays the old output. Such edits come from tools that restore timestamps, such as archive extractors and sync tools.

v5mhlf · inputs/same-stat-rewrite-checkstat-minimal · correctness
vx passesTurbo passes
✗

Nx Step 4: packages/a/dist/out.txt is "AAAA", expected "BBBB"

moon passesNix passesVite Task passes
A consumer reading what its dependency writes into it as a root output builds each version
Why this is right

A 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.

1bjk4m · inputs/root-output-into-consumer-project · correctness
vx passesTurbo passesNx passesmoon 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 build
Why this is right

File 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.

g7t2e5 · inputs/non-utf8-name-tracked · correctness
vx passesTurbo passes
✗

Nx Step 4: packages/a/dist/all is "v1bad1", expected "v1bad2"

✗

moon Step 4: packages/a/dist/all is "v1bad1", expected "v1bad2"

Nix passesVite Task passes
An edit to an untracked input whose name is not UTF-8 never replays the old build
Why this is right

File 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.

oygqce · inputs/non-utf8-name-untracked · correctness
vx passesTurbo passes
✗

Nx Step 4: packages/a/dist/all is "v1bad1", expected "v1bad2"

✗

moon Step 4: packages/a/dist/all is "v1bad1", expected "v1bad2"

Nix passesVite Task passes
An edit to a root input whose name is not UTF-8 never replays the old build
Why this is right

Root 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.

qp4vza · inputs/non-utf8-root-input · correctness
vx passesTurbo passes
✗

Nx Step 4: packages/a/dist/all is "obad1", expected "obad2"

moon passesNix passesVite Task passes
A name that is not UTF-8 in one project does not stop another project’s task
Why this is right

A 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 b build.

qa6bgl · inputs/non-utf8-name-other-project-runs · correctness
vx passes
✗

Turbo Step 2: did not run b#build

Nx passesmoon passesNix 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 other
Why this is right

U+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.

ittgpx · inputs/replacement-character-name · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A file dropped by hand into a dependency’s output directory does not rerun its dependants
Why this is right

A 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.

kp1ypg · inputs/hand-file-in-dependency-output · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A new file under a root input glob runs the task again
Why this is right

A root input glob names a set of files, and adding a file to it is a change. A new file under shared config/ often changes how every task that reads it builds. A tool that keys only the root files it saw before replays the old output without the new config.

59xz0j · inputs/root-input-new-file · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A task whose inputs cover another task’s output never replays a build of that output’s old bytes
Why this is right

When 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.

1xk3b2 · inputs/input-glob-over-sibling-task-output · correctness
vx passesTurbo 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 task
Why this is right

Projects 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.

fjx0eq · inputs/project-cycle-edit-reruns-only-it · efficiency
vx passesTurbo passesNx 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 run
Why this is right

A 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.

4y1eh1 · inputs/upstream-deletes-input · correctness
vx passesTurbo passesNx passesmoon 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, rerun
Why this is right

A 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.

ox0n4m · inputs/linked-input-directories · correctness
vx passesTurbo 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, rerun
Why this is right

Links 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.

dsl1sl · inputs/linked-directory-below-glob-prefix · correctness
vx passesTurbo 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 reruns
Why this is right

A brace pattern like {lib,src}/** expands into several directories, and any of them can be a link. A tool that follows links for plain globs but not for brace alternatives misses edits behind a linked one. The run then replays old output for files the task reads.

5mdyep · inputs/linked-brace-alternative · correctness
vx passesTurbo 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 reruns
Why this is right

Naming 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.

keocy3 · inputs/linked-directory-in-ignored-input · correctness
vx passesTurbo 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 reruns
Why this is right

A 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.

j48tm2 · inputs/file-link-out-of-project-committed · correctness
vx passesTurbo 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 reruns
Why this is right

A 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.

9b160x · inputs/file-link-out-of-project · correctness
vx passesTurbo 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 reruns
Why this is right

A 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.

df2su6 · inputs/file-link-to-ignored-file · correctness
vx passesTurbo 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 rerun
Why this is right

Files 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.

9d6g6r · inputs/linked-directory-new-file · correctness
vx passesTurbo 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 reruns
Why this is right

Links 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.

w0cut3 · inputs/link-inside-linked-directory · correctness
vx passesTurbo 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 appears
Why this is right

A 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.

xzjch2 · inputs/dangling-link-target-appears · correctness
vx passesTurbo passesNx passesmoon 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 replays
Why this is right

Links 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.

yc2f0z · inputs/link-loop · efficiency
vx passes
✗

Turbo Step 3: exited 1, expected success

Nx passesmoon passesNix passesVite Task passes
An input made unreadable after an edit fails the task or rebuilds it, never replays
Why this is right

A 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.

ln1imb · inputs/unreadable-input-never-stale · correctness
vx passesTurbo passes
✗

Nx Step 4: exited 1, expected success

moon passesNix passesVite Task passes
Editing an input git was told to assume unchanged runs the task again
Why this is right

--assume-unchanged is a promise to git’s status, used to make it faster, not a statement about the build. The bytes on disk are what the task reads. A tool that trusts the flag and keys the committed blob replays stale output after every local edit to that file.

xjabro · inputs/assume-unchanged-edit · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Editing an input git was told to skip in the work tree runs the task again
Why this is right

--skip-worktree tells git to stop looking at a file, often for local config overrides or sparse checkouts. It says nothing about what the build reads. Keying the committed blob instead of the bytes on disk replays output built from content that is not there.

ldro91 · inputs/skip-worktree-edit · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A same-size edit that keeps the file’s modification time runs the task again
Why this is right

Size and modification time are a hint for when to look again, not the content. Copying with cp -p or touch -r can leave both as they were after a real edit. A tool that trusts them alone replays output built from the old bytes under a green run. The content is what the task reads.

ihgh3g · inputs/stat-identical-rewrite · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#build

moon passesNix passesVite Task passes
A same-size edit within the same whole-second stamp as the first write runs the task again
Why this is right

ext3, 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.

mx2nmj · inputs/whole-second-rewrite · correctness
vx passesTurbo passes
✗

Nx Step 4: did not run a#build

moon passesNix passesVite Task passes
An input edited while the task runs is not replayed under the key of the bytes before
Why this is right

The 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.

cec074 · inputs/edited-while-running · correctness
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 again
Why this is right

A 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.

x3dhmt · inputs/project-in-gitlink-repo · correctness
vx passesTurbo passesNx passes
✗

moon Step 5: did not run b#build

Nix passesVite Task passes
An edit to a project inside a nested repository (untracked) runs its task again
Why this is right

A 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.

d2ie7t · inputs/project-in-untracked-repo · correctness
vx passesTurbo passesNx passes
✗

moon Step 5: did not run b#build

Nix passesVite Task passes
An edit inside a nested repository (a submodule) under a project’s input glob runs its task again
Why this is right

The 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.

h907nb · inputs/gitlink-repo-in-project · correctness
vx passesTurbo passesNx passes
✗

moon Step 5: did not run a#build

Nix passesVite Task passes
An edit inside a nested repository (untracked) under a project’s input glob runs its task again
Why this is right

An 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.

5c505y · inputs/untracked-repo-in-project · correctness
vx passesTurbo passesNx passes
✗

moon Step 5: did not run a#build

Nix passesVite Task passes
A file a nested repository tracks despite its own ignore rule is an input
Why this is right

An 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 .gitignore without checking that repository’s index drops the file, and edits to it replay stale output.

9jw900 · inputs/nested-repo-ignored-but-tracked · correctness
vx passesTurbo passes
✗

Nx Step 5: did not run a#build

✗

moon Step 5: did not run a#build

Nix passesVite Task passes
An input glob over a nested project never replays a stale result
Why this is right

Another 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.

3ceogl · inputs/glob-into-nested-project · correctness
vx passesTurbo passes
✗

Nx Step 3: packages/a/dist/out.txt is "d1\n", a stale result

moon passesNix passesVite Task passes
An input naming a file of a nested project never replays a stale result
Why this is right

An 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.

zdoo41 · inputs/file-in-nested-project · correctness
vx passesTurbo passes
✗

Nx Step 3: packages/a/dist/out.txt is "d1\n", a stale result

moon passesNix passesVite Task passes
A brace input reaching a nested project never replays a stale result
Why this is right

A 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.

jqmj4o · inputs/brace-into-nested-project · correctness
vx passesTurbo passes
✗

Nx Step 3: packages/a/dist/out.txt is "d1\n", a stale result

moon passesNix passesVite Task passes
A ! input takes its files back from every positive glob that matched them
Why this is right

A 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.

zphsuq · inputs/negation-across-two-globs · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input src/* keys the dotfile src/.env
Why this is right

An input glob lists the files a task reads, so src/* covers every file in src, dotfiles included. Shell-style globbing hides dotfiles unless asked, and a .env the task reads would then change no key. Editing it would replay output built from the old values under a green run.

upyz70 · inputs/single-star-dotfile · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A cached task declaring empty inputs replays after a project file changes
Why this is right

Empty 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.

69hh9h · inputs/empty-inputs-replays · efficiency
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon passesNix passesVite Task passes
An input src/*:*.txt keys a file whose name holds a colon
Why this is right

A 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.

dq4rgt · inputs/colon-name-by-wildcard · correctness
vx passesTurbo passesNx 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 committed
Why this is right

An 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.

z3eltb · inputs/colon-name-literal · correctness
vx passesTurbo passesNx passesmoon passesNix passes
✗

Vite Task Step 2: exited 1, expected success

A !src/a:b.txt input takes the file with the colon back
Why this is right

A 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.

j2n775 · inputs/colon-name-negated · efficiency
vx passesTurbo passesNx 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 keyed
Why this is right

A file name can hold a backslash or a double quote, and it must be keyed by its real bytes. Listed without -z, git C-quotes such a name, and a tool that reads the quoted form looks up a path that does not exist. The file drops out of the key, so edits to it replay a stale result.

l2nima · inputs/backslash-name · correctness
vx passesTurbo passesNx passesmoon passesNix passes
✗

Vite Task Step 1: exited 1, expected success

An input whose name opens with a byte-order mark is keyed, untracked and committed
Why this is right

A 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.

h4odgz · inputs/leading-bom-name · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A file in a new untracked directory is an input; an ignored install inside it is not
Why this is right

A 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 node_modules install inside the same directory is local state, not source, so it must not key the task and rerun it after every install.

t83b3g · inputs/new-untracked-directory · correctness
vx passes
✗

Turbo Step 5: ran a#build, expected it replayed or left out

Nx passesmoon passesNix passes
✗

Vite Task Step 5: ran a#build, expected it replayed or left out

A file the repository’s .git/info/exclude ignores changes nothing
Why this is right

.git/info/exclude is an ignore rule like .gitignore, only kept out of the committed tree. Ignored files are local state: scratch files, editor temp files, local logs. Keying a task on them reruns it whenever such a file changes, and the same commit gets different keys on different machines.

duq2jr · inputs/git-info-exclude · efficiency
vx passes
✗

Turbo Step 5: ran a#build, expected it replayed or left out

Nx passesmoon 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 again
Why this is right

A 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 readlink does here. A tool that skips dangling links keeps the same key after the target changes and replays output naming the old target.

p16q1e · inputs/dangling-link-retarget · correctness
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 run
Why this is right

A 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.

jy5y9f · inputs/link-cycle-no-hang · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Named pipes under the input and output globs neither hang the run nor stop a replay
Why this is right

A 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.

n6uqyx · inputs/named-pipe-no-hang · correctness
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 holds
Why this is right

When 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.

zo9zh2 · inputs/file-replaced-by-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A project nested in foo keeps its files out of foo’s inputs beside a sibling foo-bar
Why this is right

A nested project’s files belong to it alone, so an edit there must not rerun the project around it. Here foo-bar sorts between foo and foo/, and a sorted scan that stops at it never sees foo/inner as nested. An edit in inner then reruns foo too, work nothing asked for.

gp8twr · inputs/nested-project-interloping-sibling · efficiency
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 it
Why this is right

Each 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.

icso4z · inputs/doubly-nested-project · efficiency
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 stats
Why this is right

An index entry with no stat data says nothing about the file on disk. git read-tree leaves the index that way, and a tool that reads it as a sign of a clean file keys the committed blob, not the edited bytes. A same-size edit then replays the old output under a green run.

z4qa14 · inputs/index-without-stats · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit made before git read-tree wiped the index stats still runs the task again
Why this is right

An edit made before git read-tree is still an edit: the bytes on disk differ from the last build. Reading the tree drops the index’s stat data, so a tool comparing stats against the index cannot tell. It must look at the file itself, or the next run replays output built from the old bytes.

r85r28 · inputs/edit-after-read-tree · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A gitignored input named outright keys its creation, each edit, and its removal
Why this is right

Naming an ignored file such as .env.local in the inputs asks for it, even though broad globs skip ignored files. Its creation, each edit and its removal all change what the task reads. Skipping any of them replays a result built from other values, such as a bundle pointed at the wrong API.

mkyysn · inputs/gitignored-named-file-lifecycle · correctness
vx passesTurbo passes
✗

Nx Step 3: packages/a/dist/out.txt is "a\n", expected "a\nAPI=a\n"

moon passesNix passesVite Task passes
An input gen/** keys every file under the gitignored directory gen
Why this is right

A glob whose fixed prefix is an ignored directory asks for that directory by name. Generated sources often live in an ignored gen/, and the build reads them. Skipping its files replays output built from the old generated code after every regeneration.

qniuw9 · inputs/gitignored-directory-glob · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#build

✗

moon Step 3: did not run a#build

Nix passesVite Task passes
An input gen/*.js keys a matching file in the gitignored directory gen
Why this is right

An input gen/*.js names files in the ignored directory gen, so the matching files are inputs. The ignore rule decides what git tracks, not what the task reads. Leaving the match out replays a stale result after the generator rewrites it. The glob still limits the key to the files it matches.

dwqfy7 · inputs/gitignored-directory-narrow-glob · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#build

✗

moon Step 3: did not run a#build

Nix passesVite Task passes
An input gen/*.js over a gitignored gen does not key a JSON file beside the match
Why this is right

Naming an ignored directory with a narrow glob asks only for what that glob matches. A JSON file beside the .js match is outside it and stays local state. Keying the whole ignored directory would rerun the task on every unrelated generated file. The narrow glob is how the user says which generated files matter.

oezsy5 · inputs/gitignored-directory-narrow-glob-rest · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input naming a generated client under node_modules keys it
Why this is right

A generator such as prisma generate writes its client under node_modules, and a build that compiles against it reads it. Naming that path asks for it even though node_modules is ignored. Skipping it replays output checked against the old client, and the mismatch shows up only at runtime.

qauqbq · inputs/named-path-under-node-modules · correctness
vx passesTurbo 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 it
Why this is right

An entry naming an ignored directory asks for the whole directory; nothing under it is dropped by name. A node_modules inside gen is part of what was asked for. Skipping it by its usual meaning replays a stale result after that code changes. Explicit config beats the usual skip rules.

st233k · inputs/node-modules-under-named-ignored-directory · correctness
vx passesTurbo 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 names
Why this is right

A 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.

epg8mg · inputs/brace-of-gitignored-files · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#build

✗

moon Step 3: did not run a#build

Nix passesVite Task passes
A brace input {gen,out}/** keys the files of both gitignored directories
Why this is right

{gen,out}/** means gen/** and out/**, and each alternative names an ignored directory outright. Both trees are what the task reads. A tool that treats the brace differently from the two separate globs keys only one of them, and edits to the other replay stale output.

x7ytor · inputs/brace-of-gitignored-directories · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#build

✗

moon Step 3: did not run a#build

Nix passesVite Task passes
An input gen/** keys an ignored file beside the .gitkeep that keeps gen in git
Why this is right

git lists the .gitkeep, so gen looks tracked, but the files beside it are ignored and still what the task reads. A tool that takes git’s listing of a tracked directory as complete misses them. Each regeneration of gen/client.ts then replays output built from the old client.

lavnrz · inputs/ignored-directory-kept-by-gitkeep · correctness
vx passesTurbo passes
✗

Nx Step 3: did not run a#build

✗

moon Step 3: did not run a#build

Nix passesVite Task passes
An input out/** over an ignored out keys an untracked file beside a force-added one
Why this is right

One force-added file makes git list part of the ignored out, but the untracked files beside it are still under the glob. A tool that trusts git’s listing for the directory sees only the committed file. Edits to the rest then replay a stale result. The glob, not git’s listing, decides what is an input.

g99jig · inputs/ignored-directory-with-force-added-file · correctness
vx passesTurbo passes
✗

Nx Step 4: did not run a#build

✗

moon Step 4: did not run a#build

Nix passesVite Task passes
A task that rewrites its own input runs again once the old bytes are put back
Why this is right

A 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.

r7kiu2 · inputs/self-rewrite-not-replayed · correctness
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 result
Why this is right

A 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.

cs3c41 · inputs/edited-and-reverted-while-running · correctness
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 replayed
Why this is right

Another 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.

go91gq · inputs/sibling-swaps-input-mid-run · correctness
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 back
Why this is right

The 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.

lrx1a6 · inputs/tracked-input-edited-by-dependency · correctness
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 back
Why this is right

An 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.

fcx33u · inputs/untracked-input-edited-by-dependency · correctness
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 back
Why this is right

A 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.

h9r9ee · inputs/edited-behind-directory-link-while-running · correctness
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 back
Why this is right

A 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.

okzcyr · inputs/edited-behind-file-link-while-running · correctness
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 gone
Why this is right

A key must describe what the task read. Here the command created src/new.txt after the key was taken and read it into the output. Stored under that key, the next run replays content from a file that no longer exists. A clean build of the same sources would not produce it.

se1l3w · inputs/added-while-running · correctness
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 gone
Why this is right

The 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.

zsrajt · inputs/added-in-new-directory-while-running · correctness
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 gone
Why this is right

A 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.

vwgxh4 · inputs/named-input-added-while-running · correctness
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 gone
Why this is right

The command created a link whose name matches no *.txt, but the files behind it do, and the command read them. The key was taken without them. Stored under it, the output replays content from files that are no longer reachable once the link is gone.

0ikpbd · inputs/directory-link-added-while-running · correctness
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 run
Why this is right

A 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.

1p9530 · inputs/ignored-file-written-by-task-replays · efficiency
vx passes
✗

Turbo Step 2: ran a#build, expected it replayed or left out

Nx passesmoon passesNix 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 input
Why this is right

Git hooks run with GIT_INDEX_FILE set to the outer repository’s index. A tool that passes it on reads the wrong index when it lists a project inside a nested repository. The force-added file then drops out of the key, and a build started from a hook, such as pre-commit, replays a stale result.

4z46q2 · inputs/hook-index-project-in-nested-repo · correctness
vx passesTurbo passes
✗

Nx Step 5: did not run b#build

✗

moon Step 5: did not run b#build

Nix passesVite Task passes
Under a git hook’s GIT_DIR, a file a nested repository force-added despite its ignore rule is still an input
Why this is right

Git hooks can run with GIT_DIR pointing at the outer repository. Passed through to the nested repository’s listing, it makes git describe the wrong repository. A file the nested repository tracks despite its ignore rule then goes unkeyed, and a pre-commit build replays stale output.

2re1k9 · inputs/hook-git-dir-project-in-nested-repo · correctness
vx passesTurbo passes
✗

Nx Step 5: did not run b#build

✗

moon Step 5: did not run b#build

Nix passesVite Task passes
Under a git hook’s GIT_INDEX_FILE, a file a nested repository force-added despite its ignore rule is still an input
Why this is right

A project can vendor a repository of its own under an input glob. Under a hook’s GIT_INDEX_FILE, a tool that lists it with the outer index loses the files that repository force-added. Edits to them replay a stale result only when run from a hook, which makes the bug hard to see.

asbqim · inputs/hook-index-nested-repo-in-project · correctness
vx passesTurbo passes
✗

Nx Step 5: did not run a#build

✗

moon Step 5: did not run a#build

Nix passesVite Task passes
Under a git hook’s GIT_DIR, a file a nested repository force-added despite its ignore rule is still an input
Why this is right

The variables a hook sets describe the outer repository, not one vendored inside a project. With GIT_DIR passed on, listing the vendored repository reads the outer one instead. A file it force-added despite its ignore rule falls out of the key, and edits to it replay old output.

miabpp · inputs/hook-git-dir-nested-repo-in-project · correctness
vx passesTurbo passes
✗

Nx Step 5: did not run a#build

✗

moon Step 5: did not run a#build

Nix passesVite Task passes
An input src/{b}.txt never replays a stale result for either file it could name
Why this is right

A brace with one alternative reads as src/b.txt to one glob library and as the literal name src/{b}.txt to another. Whichever file a tool keys, the other can change unseen and replay a stale result. Refusing the spelling, or keying both files, is right; replaying old bytes is not.

mj412t · inputs/one-alternative-brace-never-stale · correctness
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 it
Why this is right

Root inputs belong to the task that declares them, not to its project. Editing other/thing.json changes an input of y only, so y must rerun and see the new value. A tool that misses the root file, or keys it on the wrong task, replays stale output for y under a green run. Each task’s key folds exactly its own declared inputs.

1kmr5j · inputs/root-inputs-per-task · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Two tasks of one project with different root inputs: editing one’s root file replays the other
Why this is right

Editing a root file that only y reads should not rerun x. A tool that pools root inputs across a project’s tasks makes every edit to any shared file rerun them all. In a large workspace that costs minutes on each config change. Each task depends only on the inputs it declares.

y98l84 · inputs/root-inputs-per-task-other-replays · efficiency
vx passesTurbo passesNx passesmoon passesNix 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 version
Why this is right

A task that reads a file its dependency generates must see each new version of that file. Here b reads shared/gen.txt, which a writes from its sources. A tool that keys b only on its own files misses the change upstream and replays stale output after an edit, or after the edit is undone. The dependant’s key must change whenever its dependency’s inputs do.

sry7cm · inputs/root-output-read-by-dependent · correctness
vx passesTurbo 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 run
Why this is right

A 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 config.json just before the reader. Keyed from the file as the run found it, the reader replays the previous seed’s output, so the build ships old config under a green run.

8bxjh7 · inputs/uncached-writer-ahead-of-reader · correctness
vx passesTurbo 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 bytes
Why this is right

A committed, clean file can still change during a run. Here config.json is clean in git at the start, but an uncached task overwrites it before the reader runs. Keying the reader from git’s committed content instead of the bytes it reads replays the output of a different config, and the run stays green.

bonks5 · inputs/uncached-writer-rewrites-committed-input · correctness
vx passesTurbo 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 bytes
Why this is right

A package.json named in the inputs is an input like any other, even though a tool also reads it as a manifest. Here an uncached task rewrites it before the reader. Keying from the copy read at startup replays output built from an older manifest, so a stale version field ships under a green run.

gfwwe1 · inputs/uncached-writer-rewrites-manifest · correctness
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 bytes
Why this is right

An 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 lib’s uncached gen rewrites lib/config.json before app reads it. Keying app from the bytes at the start of the run replays output made from a different config.

6tqs4n · inputs/uncached-writer-in-dependency-root-input · correctness
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 wrote
Why this is right

Ordering 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.

fc1lgo · inputs/uncached-writer-through-quiet-task · correctness
vx passesTurbo 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 bytes
Why this is right

A cached task can write files too, and a reader further down is keyed on what it wrote. Here fmt rewrites config.json, and two tasks that do nothing sit between it and the reader. Keying the reader from the file as the run found it, before fmt ran, replays output built from the previous seed under a green run.

thtsmj · inputs/cached-rewriter-two-quiet-tasks-up · correctness
vx passesTurbo 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 dependant
Why this is right

A task that is not cached still has inputs, and its dependants still see them change. Here ui#bare is uncached and app#test depends on it. Its key comes from its inputs whether it caches or not, and the dependant folds that key, so editing ui reruns app#test. Otherwise the tests replay green against code they never ran on.

aa7dj9 · inputs/uncached-dependency-source-edit-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passes
✗

Vite Task Step 3: did not run app#test

Editing a dependency’s sources reruns a cached dependant reached through an uncached task
Why this is right

A chain of dependencies passes through an uncached task without breaking. Here app#test depends on ui#build, which is uncached and depends on ui#source. If the uncached task in the middle cuts the chain of keys, an edit to ui’s sources leaves app#test replaying a result from before the edit, and a failing test goes unseen.

b7guch · inputs/through-uncached-dependency-source-edit-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passes
✗

Vite Task Step 3: did not run app#test

Editing a project nothing depends on lets a task with an uncached dependency replay
Why this is right

An 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 app#test for it spends CI time on every change anywhere, and makes the cache useless above any uncached task.

ddhg9m · inputs/uncached-dependency-unrelated-edit-replays · efficiency
vx passesTurbo passesNx passesmoon 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 files
Why this is right

A project directory can contain characters that are special in globs, such as [ and ]. Joined unescaped with the input patterns, packages/[lib] reads as a class matching one letter, the inputs match nothing, and every edit replays the first build. The project’s own path is taken literally.

71lfai · inputs/glob-syntax-project-dir · correctness
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 passesVite Task passes
An edit inside a git worktree checked out under a task’s inputs reruns the task
Why this is right

Files 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.

vl3lxy · inputs/nested-git-worktree-edit · correctness
vx passesTurbo passesNx passes
✗

moon Step 4: packages/a/dist/o is "11", expected "12"

Nix passesVite Task passes
An executable bit still reruns the task when git’s core.fileMode is false
Why this is right

File mode is an input when the command reads it. With git’s core.fileMode off, git reports no mode change, but the command here checks whether the script is executable and writes a different result. A key from git’s view replays the wrong output after a chmod. Each spelling of off is tried because git accepts them all.

uv49qh · inputs/executable-bit-under-filemode-false · correctness
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 no
Why this is right

File mode is an input when the command reads it. With git’s core.fileMode off, git reports no mode change, but the command here checks whether the script is executable and writes a different result. A key from git’s view replays the wrong output after a chmod. Each spelling of off is tried because git accepts them all.

tftlwg · inputs/executable-bit-under-filemode-no · correctness
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 off
Why this is right

File mode is an input when the command reads it. With git’s core.fileMode off, git reports no mode change, but the command here checks whether the script is executable and writes a different result. A key from git’s view replays the wrong output after a chmod. Each spelling of off is tried because git accepts them all.

p6oxrg · inputs/executable-bit-under-filemode-off · correctness
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 0
Why this is right

File mode is an input when the command reads it. With git’s core.fileMode off, git reports no mode change, but the command here checks whether the script is executable and writes a different result. A key from git’s view replays the wrong output after a chmod. Each spelling of off is tried because git accepts them all.

1ng82m · inputs/executable-bit-under-filemode-0 · correctness
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 empty
Why this is right

File mode is an input when the command reads it. With git’s core.fileMode off, git reports no mode change, but the command here checks whether the script is executable and writes a different result. A key from git’s view replays the wrong output after a chmod. Each spelling of off is tried because git accepts them all.

bljuwb · inputs/executable-bit-under-filemode-empty · correctness
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 00
Why this is right

File mode is an input when the command reads it. With git’s core.fileMode off, git reports no mode change, but the command here checks whether the script is executable and writes a different result. A key from git’s view replays the wrong output after a chmod. Each spelling of off is tried because git accepts them all.

fao869 · inputs/executable-bit-under-filemode-00 · correctness
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 again
Why this is right

A 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.

85wabo · inputs/from-member-dir-upstream-change-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passes
✗

Vite Task Step 3: did not run app#build

A project’s external dependency changing in the lockfile runs its task again
Why this is right

An 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.

9unhoz · inputs/lockfile-dependency-change-reruns · correctness
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 again
Why this is right

What a project can import through a linked workspace package includes that package’s own dependencies. Here c reads y through b, so a new y reaches c even though c’s manifest never names it. A runner that keys c only on its direct dependencies replays a build made with the old y, and the change ships in b but not in c.

svvr6j · inputs/lockfile-linked-workspace-dependency-change-reruns · correctness
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 task
Why this is right

A lockfile holds every project’s dependencies, but each task uses only its own project’s share. A change to y, which a never installs, cannot change a’s output. A runner that keys every task on the whole lockfile rebuilds every project after any dependency bump, and in a large repo almost no change replays at all.

a6ac9u · inputs/lockfile-change-outside-closure-replays · efficiency
vx passesTurbo passesNx passesmoon 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 other
Why this is right

The 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.

7q9kd1 · inputs/catalog-change-reruns-its-readers · correctness
vx passesTurbo 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 task
Why this is right

An 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 node_modules, stays the same. A runner that reruns after each install throws away the cache on every CI job, since most jobs install first.

51rwah · inputs/reinstall-without-change-replays · efficiency
vx passesTurbo passesNx passesmoon 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 again
Why this is right

The same packages are installed, but the name foo now resolves to the other one. A key that collects only the set of installed versions sees no change, though every import of foo now loads different code. The runner then replays output built with the old mapping. Each dependency name and what it resolves to must count together.

wpmoqy · inputs/lockfile-alias-swap-reruns · correctness
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 them
Why this is right

Packages the root installs sit where every project resolves them, so a project can read them without naming them. Swapping which package the root’s foo and bar install changes what such a project loads. If the root’s dependencies are left out of the key, the task replays output built with the old packages under a green run.

f1mo77 · inputs/lockfile-root-alias-swap-reruns · correctness
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 it
Why this is right

A file: dependency is a local directory, and the lockfile names only its path. So when a file inside it changes, the lockfile stays the same while the installed code does not. A runner that keys on the lockfile alone replays the old build. The directory’s content is the dependency’s version and must be part of the key.

whae72 · inputs/file-dir-dependency-edit-reruns · correctness
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 it
Why this is right

A local directory dependency belongs to the projects that install it, not to the whole workspace. other does not depend on it, so an edit there cannot change other’s output. Treating the edit as a change for every project reruns unrelated builds each time the vendored code moves, which wastes CI time with nothing gained.

9cnmyo · inputs/file-dir-dependency-edit-spares-others · efficiency
vx passesTurbo passesNx passesmoon 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 it
Why this is right

A 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.

u9uacl · inputs/file-dir-dependency-new-file-reruns · correctness
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 it
Why this is right

A 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.

sq0kqi · inputs/file-dir-dependency-linked-file-reruns · correctness
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 it
Why this is right

An install copies a local directory dependency without its node_modules, so files there never reach the project. A change inside it changes nothing the task reads. A runner that hashes it reruns the task whenever the dependency’s own tools install or update, which can be on every run.

a6icct · inputs/file-dir-dependency-own-node-modules-ignored · efficiency
vx passesTurbo passesNx passesmoon 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 it
Why this is right

A link: dependency is a symlink to a directory, so an edit there is live in the project at once, with no install. The lockfile does not change, and the project’s own files do not either. A runner must still key on the linked directory’s content, or it replays the old build while the code it imports has changed.

d0dwiu · inputs/link-dir-dependency-edit-reruns · correctness
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 it
Why this is right

A link:<name> dependency points at a folder the user registered with bun link, so the manifest names no path at all. The folder is still what the project imports, and an edit there is live at once. A runner that keys only path-shaped links misses it and replays the old build.

xsxk4v · inputs/global-link-dependency-edit-reruns · correctness
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 it
Why this is right

A local dependency kept in another project’s directory is still the dependency of the project that installs it. When its content changes, lib’s installed copy changes, and lib’s build must run again. A runner that counts the files only for the project holding them replays lib’s old build.

czoti0 · inputs/file-dep-inside-other-project-reruns · correctness
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 again
Why this is right

"y": "link:../b" installs b itself, so what a imports through y is everything b reaches. When b’s dependency ms changes, a loads the new ms too. A runner that does not follow a link into a workspace package treats y as opaque, and replays a’s build made with the old ms.

tvkirs · inputs/link-to-workspace-dependency-change-reruns · correctness
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 again
Why this is right

A workspace package can sit inside another project’s directory, and it keeps its own dependencies. When n’s dependency changes, n’s installed code changes, and its task must run again. A runner that finds a project’s dependencies by directory may give them to the outer project, and replay n’s old build.

yn2y9n · inputs/nested-workspace-dependency-change-reruns · correctness
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 task
Why this is right

A 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.

afny6k · inputs/nested-workspace-dependency-change-spares-outer · efficiency
vx passesTurbo passesNx passesmoon 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 it
Why this is right

An override in the root manifest can swap a package deep in a project’s dependency tree. Here b reaches z through yy, and the override replaces it. The project’s own manifest is unchanged, so a runner that keys only on direct dependencies replays b’s build with the old z. The resolved tree is what the task loads.

a4d2qp · inputs/override-reruns-reaching-project · correctness
vx passesTurbo 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 package
Why this is right

An override changes only the projects whose dependency tree contains the package it forces. a never reaches z, so its installed code is the same as before. A runner that treats any change to the root manifest as a change for every project rebuilds the whole workspace for a fix that touches one tree.

lo80i6 · inputs/override-spares-unreached-project · efficiency
vx passesTurbo passesNx passesmoon 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 task
Why this is right

What a task loads is the package an override resolves to, not how the override is written. file:./vendor/z2 and file:vendor/z2 install the same directory. A runner that keys on the manifest text reruns every task after a cosmetic edit. Keying on the resolution keeps the cache, and still sees a real change.

xhk8bl · inputs/override-respelled-same-resolution-replays · efficiency
vx passesTurbo passesNx passesmoon 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 it
Why this is right

The 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.

emjjmn · inputs/outside-file-dependency-edit-reruns · correctness
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 it
Why this is right

Only 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.

wrwz4s · inputs/outside-file-dependency-edit-spares-others · efficiency
vx passesTurbo passesNx passesmoon 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 again
Why this is right

Pointing 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.

pgadgj · inputs/outside-file-dependency-retarget-reruns · correctness
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 install
Why this is right

node_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.

96lymw · inputs/outside-link-dependency-edit-reruns · correctness
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 it
Why this is right

A 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.

hjjhoa · inputs/outside-link-dependency-new-file-reruns · correctness
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 it
Why this is right

Only 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.

hsxgwr · inputs/outside-link-dependency-edit-spares-others · efficiency
vx passesTurbo passesNx passesmoon 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 again
Why this is right

Pointing 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.

b2pyin · inputs/outside-link-dependency-retarget-reruns · correctness
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 task
Why this is right

Installing 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.

92pmms · inputs/outside-link-dependency-reinstall-replays · efficiency
vx passesTurbo passesNx passesmoon 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 install
Why this is right

A 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.

tkve3q · inputs/link-dir-dependency-new-file-reruns · correctness
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 it
Why this is right

Only 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.

p8fqv3 · inputs/link-dir-dependency-edit-spares-others · efficiency
vx passesTurbo passesNx passesmoon 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 again
Why this is right

Pointing 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.

zrt6cu · inputs/link-dir-dependency-retarget-reruns · correctness
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 it
Why this is right

The 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.

gpymj2 · inputs/link-dep-inside-other-project-reruns · correctness
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 again
Why this is right

The 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.

96a4to · inputs/link-alias-swap-reruns · correctness
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 again
Why this is right

The 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.

emqog5 · inputs/alias-retarget-reruns · correctness
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 again
Why this is right

The 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.

kmlztn · inputs/outside-link-alias-edit-reruns · correctness
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 package
Why this is right

A git pull brings the new manifest and lockfile but not the packages: until the install, node_modules still holds the old version. A task run then builds against the old package, and a runner that keys on the lockfile saves that build under the new lockfile’s key. After the install nothing in the key changes, so the stale build replays from then on, to teammates too through a shared cache. Refusing to run until the install, or keying on what is installed, keeps the new version’s build.

16r9pm · inputs/lockfile-pull-without-install-never-caches-the-old-package · correctness
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 package
Why this is right

Here 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.

tpezl3 · inputs/lockfile-pull-transitive-without-install-never-caches-the-old-package · correctness
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 again
Why this is right

Under * text=auto git may store a CRLF file with LF, but the task reads the CRLF bytes on disk, so those bytes are the input. An edit that keeps the size, with a future mtime, can look clean to git. A runner that trusts git’s stored blob replays the old build, though the file the task reads has changed.

p485bv · inputs/crlf-text-auto · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
With * text in .gitattributes, a same-size edit to a CRLF file runs the task again
Why this is right

Under * text git treats every file as text and stores it with LF, while the CRLF bytes stay on disk. The task reads the disk, so those bytes are the input. A runner that hashes git’s normalised form, or trusts a stat that did not move, misses a same-size edit and replays output built from the old file.

233xov · inputs/crlf-text · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
With *.txt text eol=crlf in .gitattributes, a same-size edit to a CRLF file runs the task again
Why this is right

With eol=crlf, git writes CRLF on checkout but stores LF, so what is on disk and what git holds differ by design. The task reads the disk, so those bytes are the input. A same-size edit that git’s stat does not catch must still run the task again, or the runner replays output built from the old text.

acc5yo · inputs/crlf-eol-crlf · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A file checked out again under a new eol=crlf rule runs the task again, though git still calls it clean
Why this is right

A 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.

xsytib · inputs/new-eol-rule-reaches-the-checkout · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under a project’s own *.md text rule, a same-size edit to a CRLF file runs the task again
Why this is right

A project can set its own line-ending rules in its own .gitattributes, and they apply to its files as the root’s do. Under *.md text git may store a CRLF file with LF, yet the task reads the CRLF bytes on disk. A runner that trusts git’s stored form, or reads only the root’s rules, can miss a same-size edit and replay the old build.

4h9vm9 · inputs/project-gitattributes-crlf · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under * text=auto, rewriting a file holding a lone CR from LF to CRLF runs the task again
Why this is right

Whether 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.

7x0bz7 · inputs/text-auto-crlf-rewrite-lone-cr · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under * text=auto, rewriting a file holding a NUL past its first 8000 bytes from LF to CRLF runs the task again
Why this is right

Git 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.

quhzl8 · inputs/text-auto-crlf-rewrite-late-nul · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under * text=auto, rewriting a file holding a control byte from LF to CRLF runs the task again
Why this is right

A control byte does not make git call a file binary, so under * text=auto it is normalised like text. Rewritten from LF to CRLF, the bytes on disk change while git may store the same blob. A runner that trusts git’s stored form replays output built from the LF file, and the task’s real input never counts.

i2doix · inputs/text-auto-crlf-rewrite-control-byte · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under * text=auto, rewriting a file holding plain text from LF to CRLF runs the task again
Why this is right

Under * text=auto, git stores plain text with LF whatever is on disk. A rewrite from LF to CRLF then leaves git’s blob the same while every line the task reads changes. A runner that keys on that blob replays the old output, and a tool that cares about line endings, such as a shell script or a snapshot test, sees the wrong file.

k7jheo · inputs/text-auto-crlf-rewrite-plain · correctness
vx passes
✗

Turbo Step 4: did not run a#build

Nx passesmoon passesNix passesVite Task passes
Under * text=auto, dropping the CR from a binary file’s CRLF runs the task again
Why this is right

Under * text=auto git decides by content whether a file is text, and a file holding NUL bytes is binary. Dropping a CR from it changes the bytes the task reads, even though a text-mode view of it might not. A runner that normalises line endings before hashing would see no change and replay output built from the old file.

kyt05d · inputs/text-auto-binary-crlf-to-lf · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit to a committed input with a non-ASCII name runs the task again
Why this is right

A 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.

at2z4b · inputs/non-ascii-tracked-name · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input src/*:bar.txt keys foo:bar.txt and foo::bar.txt: a : is part of a name
Why this is right

In a glob, a : is an ordinary character of a file name, not syntax. A runner that reads src/*:bar.txt as something else, such as a prefix or a path list, matches no file, and the task is keyed on nothing. Edits to foo:bar.txt then replay the old output. Both foo:bar.txt and foo::bar.txt match and must count.

m79c82 · inputs/colon-in-glob-is-a-name · correctness
vx passesTurbo passesNx 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 name
Why this is right

A , means something in a glob only inside braces; elsewhere it is part of the name. A runner that splits src/a,b.ts into two patterns keys on src/a and b.ts, neither of which exists, so the file named a,b.ts is no input. Editing it then replays the old output, and the build ships stale code.

hsxpq3 · inputs/comma-in-literal-is-a-name · correctness
vx passes
✗

Turbo Step 1: exited 1, expected success

Nx passesmoon passesNix passes
✗

Vite Task Step 1: exited 1, expected success

Inputs through @scope, a+b and (marketing) directories key the files under them
Why this is right

Paths with @scope, a+b and (marketing) are common: package scopes, and route groups in web frameworks. A glob engine that reads +, @ or ( ) as pattern syntax matches nothing under them. The task is then keyed without its pages or modules, and an edit there replays the old build. These characters must match themselves.

lh84n5 · inputs/scope-plus-group-names · correctness
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 edited
Why this is right

File names may hold $, quotes, spaces or tabs, and route files such as $id.tsx are common. If the runner passes names through a shell, or splits a list on white space, such a file is mangled or lost. Its edits then replay the old output. Names must be handled as bytes from the file system to the key, committed or not.

0onteu · inputs/shell-special-names · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A file or directory whose name holds a newline is an input, untracked or committed
Why this is right

A 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.

7h8qhr · inputs/newline-in-names · correctness
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 unkeyed
Why this is right

An unclosed [ opens no character class, so src/[invalid is the name of a file. A runner may key that file, or refuse the glob as malformed; both tell the truth. What it must not do is match nothing and run with the input silently left out, since an edit to the file would then replay the old build.

s3vcph · inputs/unclosed-bracket-literal · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Only a file named .gitignore holds ignore rules: foo.gitignore and .ignore do not
Why this is right

Git reads ignore rules only from files named .gitignore, plus .git/info/exclude and the user’s global file. A file named foo.gitignore or .ignore is just a file. A runner that treats them as rules drops inputs git would track, and edits to those files replay the old output. The ignore set must match git’s.

dplx6l · inputs/only-gitignore-holds-rules · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An uncommitted .gitignore edit that stops ignoring a file, then ignores it again: an edit it ignores replays the task
Why this is right

Ignore rules decide what is local state, and the rules in force are the ones on disk now, committed or not. While gen.txt is ignored, editing it changes nothing the key holds, so the task replays. A runner that reads ignore rules from the last commit keys a file the developer has just ignored, and reruns after every regeneration.

7p31ws · inputs/gitignore-edit-ignored · efficiency
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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 again
Why this is right

Once an uncommitted .gitignore edit stops ignoring gen.txt, the file is an input like any other, and its edits must run the task again. A runner that reads only committed rules still ignores it. It then replays output built from an old gen.txt until someone commits the .gitignore change.

vftbm2 · inputs/gitignore-edit-keyed · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A * .gitignore that whitelists one file: an edit it ignores replays the task
Why this is right

A .gitignore of * with !keep.txt is a common way to keep one file in a cache or build folder and ignore the rest. Everything else there is local state, so an edit to junk.txt changes no input and the task replays. A runner that keys the whole folder reruns each time a tool writes its cache.

bqqsxx · inputs/self-ignoring-whitelist-ignored · efficiency
vx passes
✗

Turbo Step 4: ran a#build, expected it replayed or left out

Nx passesmoon 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 again
Why this is right

A * .gitignore with !keep.txt ignores everything in its folder except keep.txt, which stays an input. Its edits must run the task again. A runner that sees the * and drops the whole directory loses the one file that was meant to count, and replays output built from the old keep.txt.

1lejuo · inputs/self-ignoring-whitelist-keyed · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A project’s !important.log under the root’s *.log: an edit it ignores replays the task
Why this is right

A project’s own .gitignore can re-include a file the root ignores, since git applies the deeper rule last. Other .log files stay ignored as the root says, so an edit to other.log replays the task. A runner that applies the negation too widely keys every log file and reruns after each log write.

czg4pd · inputs/project-negation-over-root-rule-ignored · efficiency
vx passes
✗

Turbo Step 4: ran a#build, expected it replayed or left out

Nx passesmoon 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 again
Why this is right

Git applies the deeper .gitignore last, so a project’s !important.log re-includes a file the root’s *.log ignores. That file is an input, and an edit to it must run the task again. A runner that reads only the root’s rules drops it from the key and replays output built from the old file.

6ob31s · inputs/project-negation-over-root-rule-keyed · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A root .gitignore with *.log and !keep.log: an edit it ignores replays the task
Why this is right

A root .gitignore with *.log and !keep.log ignores every log but one. A new debug.log is local noise, so writing it changes no input and the task replays. A runner that does not honour *.log keys every debug log, and a cached task reruns each time a tool writes one.

ole5jv · inputs/root-negation-ignored · efficiency
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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 again
Why this is right

In a root .gitignore with *.log and !keep.log, the later negation wins for keep.log. That file is meant to count, so writing it must run the task again. A runner that applies *.log and skips the negation leaves keep.log out of the key and replays output built without it.

vs1t1h · inputs/root-negation-keyed · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A root rule two directories into a project, under an input **: an edit it ignores replays the task
Why this is right

A root rule can name a path deep inside a project, such as packages/a/src/deep/*.tmp. Git applies it there, so x.tmp is local state even under an input of **. A runner that applies root rules only at the top of each project, or not inside it, keys the temp file and reruns the task each time it changes.

tiz0qu · inputs/root-rule-deep-in-project-ignored · efficiency
vx passes
✗

Turbo Step 4: ran a#build, expected it replayed or left out

Nx passesmoon 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 again
Why this is right

A root rule like packages/a/src/deep/*.tmp ignores only what it names. A new y.txt in the same directory is an input of the ** glob, so it must run the task again. A runner that treats the whole directory as ignored, because one rule points into it, replays output that misses the new file.

od8xtn · inputs/root-rule-deep-in-project-keyed · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A new directory’s own .gitignore: an edit it ignores replays the task
Why this is right

A new, untracked directory can bring its own .gitignore, and git applies it at once. A file it ignores, such as secret.txt, is local state and no input, so the task replays. A runner that reads ignore files only in tracked directories keys the secret, reruns on each change to it, and may store it.

subal3 · inputs/new-dir-own-gitignore-ignored · efficiency
vx passes
✗

Turbo Step 4: ran a#build, expected it replayed or left out

Nx passesmoon 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 again
Why this is right

A new directory’s .gitignore ignores only what it names. open.txt beside it is a new input of src/**, so the task must run again. A runner that treats an untracked directory holding a .gitignore as wholly ignored replays output that misses the new file, and nothing warns.

h2ejk1 · inputs/new-dir-own-gitignore-keyed · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A nested .gitignore, which ignores only below it: an edit it ignores replays the task
Why this is right

A .gitignore applies to its own directory and below, so src/a/.gitignore ignores src/a/x.txt. That file is local state, and so is an empty directory, since git tracks no directories. Neither changes an input, so the task replays. A runner that keys empty directories, or misses the nested rule, reruns for nothing.

gdz5ie · inputs/nested-gitignore-scope-ignored · efficiency
vx passes
✗

Turbo Step 4: ran a#build, expected it replayed or left out

Nx passesmoon 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 again
Why this is right

A nested .gitignore ignores only below its own directory. src/b/x.txt has the same name as the file src/a/.gitignore ignores, but lies outside its scope, so it is an input. A runner that applies the rule by name across the project drops it from the key and replays output that misses the file.

pr07g2 · inputs/nested-gitignore-scope-keyed · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A FIFO under an input glob does not hang the run
Why this is right

A 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.

92dop0 · inputs/fifo-under-glob · correctness
vx passesTurbo passesNx passesmoon 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 again
Why this is right

git add -N records a path in the index with the empty blob, before its content is staged. That blob says nothing about the bytes on disk. A runner that trusts the index for the file keys every version of it as empty, so edits replay the old build. Such a file must be hashed from disk, like an untracked one.

9s2spl · inputs/intent-to-add · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A task keyed on a root file and no project file runs again when the root file changes
Why this is right

A 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.

8i9drk · inputs/root-input-alone-keys · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A task ordered after a dependency, but not keyed on it, replays when only the dependency changes
Why this is right

The 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.

exckqy · inputs/dependency-inputs-off-replays · efficiency
vx passes
–

Turbo: N/A A dependency’s hash always keys its dependants: no task orders a dependency without it.

Nx passesmoon 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 key
Why this is right

A trailing slash only says the path is a directory: !src/gen/ takes back every file under it, as src/ keys every file under src. Read as a bare pattern, it matches nothing and the generated files stay in the key. Each regeneration then reruns a task the user excluded them from, while edits outside it must still rerun.

gk1rge · inputs/negated-trailing-slash-directory · efficiency
vx passesTurbo passesNx passes
✗

moon Step 3: ran a#build, expected it replayed or left out

Nix passesVite Task passes
A !**/*.bak input still keys a file named plain bak
Why this is right

An exclusion by suffix means files ending in .bak, not every name holding those letters. A file named plain bak, with no dot, is a source like any other, and the user never took it back. A tool that matches the suffix loosely replays a stale result when that file changes, under a green run.

3yjzak · inputs/negated-suffix-keeps-bare-name · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A key command that leaves a background child running does not hold up the run
Why this is right

A 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.

41zq7i · inputs/runtime-command-child-does-not-hold-the-run · correctness
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 again
Why this is right

A directory name is just a name, and :top is a legal one. Git reads a leading : in a path argument as special syntax, so a tool that passes the name to git unquoted lists the wrong files or none. The edit then falls outside the key and the stale result is replayed.

hseezm · inputs/project-directory-starting-with-colon · correctness
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 it
Why this is right

A * in a directory name is a literal character. A tool that passes the name to git as a pattern matches big too, so an edit in big changes the key of *g and runs it for nothing. The project’s files are the ones under its own directory, whatever its name looks like.

dyvinb · inputs/project-directory-with-glob-character · efficiency
vx passes
✗

Turbo Step 3: ran star#build, expected it replayed or left out

Nx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
A brace input naming src and the escaped app/\[id\] keys both directories
Why this is right

Next.js routes live in folders like app/[id], so a glob must escape the brackets to name the folder. {src,app/\[id\]} names two directories, each a tree of inputs. A tool that stops expanding the brace once it sees an escape matches neither, so an edit to the route replays a stale build.

txs8qj · inputs/brace-holding-escaped-brackets · correctness
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 it
Why this is right

Inputs are src/** but not src/**/*.skip, and src/l.skip is a link to a shared folder the build reads. Under a real folder named l.skip the negation matches none of its files, so they stay inputs; a link must not change that. A tool that matches the negation against the link’s own name drops every file behind it, and an edit there replays the old build.

prwout · inputs/negation-matching-a-directory-link-name-keeps-its-files · correctness
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 again
Why this is right

Packing or publishing a package writes the version each workspace:* dependency has now in place of the range. Here app packs a tarball that names lib, and lib’s version moves from 0.0.0 to 1.0.0 with no other change. A tool that keys app on what lib installs but not on lib’s own version replays the old tarball, and the release ships depending on a version of lib that is not the one released with it.

2vhw6p · inputs/workspace-dependency-version-bump-repacks · correctness
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 again
Why this is right

A 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.

r1bcrd · inputs/executable-bit-cleared-reruns · correctness
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 build
Why this is right

Putting 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.

qezs7o · inputs/executable-bit-round-trip-replays · efficiency
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 again
Why this is right

A 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.

zg4435 · inputs/executable-bit-on-untracked-input · correctness
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 file
Why this is right

A 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.

e7y9nd · inputs/executable-bit-committed-replays · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Making a root input executable runs the task that names it again
Why this is right

A shared script at the root (scripts/build.sh) is often named by every project’s task. Its mode is part of what the task reads, as for a project file. A tool that keys root files by content alone replays a build made while the script could not run. The second run runs and sees the script executable.

wxlteu · inputs/executable-bit-on-root-input · correctness
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 again
Why this is right

A 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.

nvijvs · inputs/selected-nested-project-untracked-edit-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A run of one project ignores a file its own .gitignore ignores, as a full run does
Why this is right

Git’s ignore rules come from every .gitignore between the root and the file. A tool that scans only the selected project may read the project’s rules but miss the root’s, or the other way round, and key a scratch file the full run ignores. Rebuilding on a scratch file wastes the run. An edit to the ignored file replays; an edit to a kept one runs.

fswg7v · inputs/selected-run-keeps-nested-gitignore · efficiency
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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 task
Why this is right

Input and output patterns often overlap: **/*.txt in, out/** out, with out not ignored by git. The files the task wrote are its result, not something it read. A tool that keys its own output reruns the task every time, and caching it is pointless. The second run replays, and an edit to a real source still runs it; refusing such a pair before any task runs is fine too.

mcqt09 · inputs/own-output-file-named-under-output-dir-replays · efficiency
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 passesNix 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 task
Why this is right

Input and output patterns often overlap: **/*.txt in, out/** out, with out not ignored by git. The files the task wrote are its result, not something it read. A tool that keys its own output reruns the task every time, and caching it is pointless. The second run replays, and an edit to a real source still runs it; refusing such a pair before any task runs is fine too.

gg0f95 · inputs/own-output-file-named-under-output-glob-replays · efficiency
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 passesNix 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 task
Why this is right

Input and output patterns often overlap: **/*.txt in, out/** out, with out not ignored by git. The files the task wrote are its result, not something it read. A tool that keys its own output reruns the task every time, and caching it is pointless. The second run replays, and an edit to a real source still runs it; refusing such a pair before any task runs is fine too.

a0f6s5 · inputs/input-glob-over-own-output-file-replays · efficiency
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 passesNix 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 task
Why this is right

Input and output patterns often overlap: **/*.txt in, out/** out, with out not ignored by git. The files the task wrote are its result, not something it read. A tool that keys its own output reruns the task every time, and caching it is pointless. The second run replays, and an edit to a real source still runs it; refusing such a pair before any task runs is fine too.

q70mo4 · inputs/input-glob-over-own-output-dir-replays · efficiency
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 passesNix 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 task
Why this is right

Input and output patterns often overlap: **/*.txt in, out/** out, with out not ignored by git. The files the task wrote are its result, not something it read. A tool that keys its own output reruns the task every time, and caching it is pointless. The second run replays, and an edit to a real source still runs it; refusing such a pair before any task runs is fine too.

pppvpa · inputs/input-glob-over-own-output-glob-replays · efficiency
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 passesNix 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 again
Why this is right

A 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.

jq9q2c · inputs/file-replaced-by-link-to-other-content-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input link replaced by a plain file with other content runs the task again
Why this is right

Undoing 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.

yhb1jh · inputs/link-replaced-by-file-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit made through a hard link outside the inputs reruns the task reading the other name
Why this is right

Two 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.

selo43 · inputs/edit-through-a-hard-link-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An empty directory created under the inputs replays the task
Why this is right

Git 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.

yo3amm · inputs/empty-directory-added-replays · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input emptied to zero bytes runs the task again
Why this is right

An 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.

u0cz8g · inputs/file-emptied-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a*/** keys files under every directory starting with a, and no other
Why this is right

A star in a directory name picks directories, then ** takes everything below them. 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.

4868if · inputs/glob-star-dir-then-globstar · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/**/*f keys a file ending in f at any depth, and not one ending otherwise
Why this is right

**/*f is any directory depth, then a name ending in f. 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.

2j7eef · inputs/glob-globstar-then-suffix · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/*c keys abc and not abd
Why this is right

A 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.

0r6van · inputs/glob-star-suffix · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a*/b keys ax/b, and not ax/c
Why this is right

A star in the directory part leaves the file name exact: only files named b in matching 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.

h35kiy · inputs/glob-star-dir-fixed-file · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a*/b does not key ax/y/b, two levels down
Why this is right

A single star stays inside one path segment, so a*/b never reaches a b one directory deeper. 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.

v7lauu · inputs/glob-star-dir-not-two-levels · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a*b*c*d*e* keys a name with those letters in order, and not one missing the last
Why this is right

Several 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.

qtkhiz · inputs/glob-many-stars · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a*b?c*x keys aXbYcZx, and not abcx, where ? has nothing to match
Why this is right

? matches exactly one character, so b?c needs something between b and c. 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.

8xrus8 · inputs/glob-star-and-question-mark · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/ab[b-d] keys abc, and not abe
Why this is right

A 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.

mtpz4c · inputs/glob-class-range · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a[!a]b keys axb, and not aab
Why this is right

[!a] matches one character that is not a. A tool reading ! as a literal, or the whole input as an exclusion, keys the wrong file. 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.

pkd8b9 · inputs/glob-negated-class · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a[^a]b keys axb, and not aab
Why this is right

[^a] is the other common spelling of a negated class, used by gitignore and most glob libraries. 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.

kctugo · inputs/glob-caret-negated-class · correctness
vx passesTurbo passesNx 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 two
Why this is right

Each ? is exactly one character; three of them never match two. 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.

nz3drj · inputs/glob-question-marks-count · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a?b keys axb, and not the file b in a directory a
Why this is right

? never matches the / between 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.

874932 · inputs/glob-question-mark-not-slash · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a*b keys axyb, and not ax/yb across a directory
Why this is right

A single star stops at /; only ** crosses 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.

njwhwa · inputs/glob-star-not-slash · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/*x keys g/fox, and not g/d/fox below it
Why this is right

A pattern without ** matches at its own level only. 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.

1p13mq · inputs/glob-star-stays-at-its-level · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a/**/b keys g/a/b, with no directory between
Why this is right

** matches zero or more directories, so a/**/b includes a/b itself. 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.

38xuuh · inputs/glob-globstar-matches-zero-dirs · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a/**/b keys g/a/x/y/z/b, three directories down
Why this is right

** spans any number of 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.

t64pb2 · inputs/glob-globstar-matches-many-dirs · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/**/c keys g/c at the top of the tree
Why this is right

A leading **/ also matches no directory at all. 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.

dlvk2b · inputs/glob-leading-globstar-top-level · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/ab{c,d,*} keys abzz through its star alternative
Why this is right

Each 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.

n24dgm · inputs/glob-brace-with-star-alternative · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a/{b/c,c/b} keys a/c/b, and not a/b/b
Why this is right

Alternatives can hold whole paths. A tool that splits the pattern at / before expanding braces breaks them apart. 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.

1uto3y · inputs/glob-brace-alternatives-with-slashes · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/{a/{b,c},abc} keys a/c and abc, and not a/d
Why this is right

Braces nest: the inner set expands inside the outer alternative. A tool that expands one level leaves {b,c} as text. 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.

ry8sbk · inputs/glob-nested-braces · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/{a/{b,c},abc} keys the plain alternative abc
Why this is right

The 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.

c2mr80 · inputs/glob-nested-braces-outer-alternative · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/**/【* keys a name starting with 【, and not a plain one
Why this is right

A 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.

grm5a4 · inputs/glob-star-after-unicode · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/[\]a] keys the file named ]
Why this is right

Inside a class, \] is a closing bracket character rather than the end of the 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.

5q5ssb · inputs/glob-escaped-bracket-in-class · correctness
vx passesTurbo 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 axb
Why this is right

A 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 [*]; reading it as a wildcard is the failure. 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.

n9t62q · inputs/glob-escaped-star-is-literal · correctness
vx passesTurbo passesNx passes
✗

moon Step 5: did not run a#build

Nix passesVite Task passes
An input g/[x\-] keys the file named -, and not y
Why this is right

An 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.

9uhyxm · inputs/glob-escaped-dash-in-class · correctness
vx passesTurbo passesNx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
An input g/x/../a.txt keys g/a.txt
Why this is right

A .. inside the pattern steps back up a directory, as in any path. A tool that keeps it as a name never keys the file; refusing the pattern before any task runs is fine. 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.

sdyjqd · inputs/glob-dotdot-segment-cleaned · correctness
vx passesTurbo 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 parent
Why this is right

Only a segment that is exactly .. means the parent. ..notes is an ordinary hidden file. 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.

dpiosl · inputs/glob-name-starting-with-two-dots · correctness
vx passesTurbo passesNx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
An input g/b../c keys c in a directory named b..
Why this is right

A directory named b.. is a name; cleaning it as if it were .. points the pattern somewhere else. 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.

rq3z5n · inputs/glob-directory-ending-in-two-dots · correctness
vx passesTurbo passesNx passes
✗

moon Step 1: exited 1, expected success

Nix passesVite Task passes
An input g/**/*.txt keys a file under a dot directory
Why this is right

** walks every directory, and a dot directory is a directory. A .cache or .generated folder the task reads is part of its input. 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.

r8zl5l · inputs/glob-globstar-into-dot-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/*/x keys x inside a dot directory
Why this is right

A star covers every name at its level, dot names included, as src/* covers src/.env. A tool that hides dot names here misses a file the task reads. 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.

5w93o0 · inputs/glob-star-dir-matches-dot-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/.* keys .env, and not env
Why this is right

A 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.

pnuemf · inputs/glob-dot-star-matches-dotfile · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/.*/x keys x under a dot directory, and not under a plain one
Why this is right

The 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.

pv943u · inputs/glob-dot-star-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/v[0-9] keys v7, and not va
Why this is right

A 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.

4qh7oy · inputs/glob-class-digits · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/[a-cx-z]1 keys y1, and not m1
Why this is right

A 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.

v6oey8 · inputs/glob-class-two-ranges · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a[b-] keys a-, and not ac
Why this is right

A 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.

mt8e0d · inputs/glob-class-trailing-dash-literal · correctness
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 ac
Why this is right

A 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.

2lw9fn · inputs/glob-class-leading-dash-literal · correctness
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 axb
Why this is right

Inside 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.

uw30wq · inputs/glob-class-holding-dot · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a[*] keys the file named a*, and not ab
Why this is right

Inside 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.

2scxmz · inputs/glob-class-holding-star · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a[?] keys the file named a?, and not ab
Why this is right

Inside 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.

75fqmw · inputs/glob-class-holding-question-mark · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a[!x]b keys ayb, and not the file b in a directory a
Why this is right

A 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.

2mchuv · inputs/glob-negated-class-not-slash · correctness
vx passesTurbo 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 bx
Why this is right

A 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.

8kcaz4 · inputs/glob-negated-class-range · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/[^0-9]x keys ax, and not 5x
Why this is right

The 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.

h5itt4 · inputs/glob-caret-negated-range · correctness
vx passesTurbo passesNx 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.txt
Why this is right

An empty alternative is the pattern without that part, so a{,b}.txt is a.txt or ab.txt. 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.

wcdp06 · inputs/glob-brace-empty-alternative · correctness
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.txt
Why this is right

The 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.

ymu1kg · inputs/glob-brace-empty-alternative-other · correctness
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.css
Why this is right

Braces 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.

wfxkgv · inputs/glob-brace-extension-set · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/{a,b}/**/*.js keys g/b/c/d.js, and not g/c/d.js
Why this is right

Braces pick directories, then ** walks below each of them. 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.

ccfy5m · inputs/glob-brace-directory-then-globstar · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a* keys the file named a itself
Why this is right

A 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.

ihz7hn · inputs/glob-star-matches-nothing · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/x*y/z keys z in xy, where the star matches nothing
Why this is right

A 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.

6odz1a · inputs/glob-star-between-fixed-letters-in-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a?b keys aéb, where ? matches one two-byte character
Why this is right

? is one character, not one byte. A matcher that counts bytes never keys a file named in any language but English. 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.

h3r94a · inputs/glob-question-mark-multibyte · correctness
vx passesTurbo 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 ex
Why this is right

A 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.

fhd434 · inputs/glob-class-multibyte · correctness
vx passesTurbo 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 a
Why this is right

A trailing ** takes everything under the directory, at any depth. 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.

rnrumg · inputs/glob-trailing-globstar-deep · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/**/a/*.txt keys g/q/r/a/x.txt, and not g/q/x.txt
Why this is right

** can sit before a fixed directory name; the name must then appear in the path. 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.

k374o0 · inputs/glob-globstar-then-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/**/a/*.txt keys g/a/x.txt with nothing between
Why this is right

The ** before a fixed directory matches zero directories as well. 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.

2wkrto · inputs/glob-globstar-then-directory-at-top · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/**/**/x keys g/x, as g/**/x does
Why this is right

Two ** segments in a row mean the same as one. A tool that demands at least one directory per ** misses the top level. 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.

b2xy27 · inputs/glob-two-globstars-in-a-row · correctness
vx passesTurbo passesNx 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.txt
Why this is right

On a case-sensitive filesystem TXT and txt are different names, as the task sees them. 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.

5r5j0c · inputs/glob-case-sensitive-extension · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/a b.txt keys the file with a space in its name
Why this is right

A 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.

s4xchu · inputs/glob-space-in-name · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/*.* keys a.b, and not ab
Why this is right

The 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.

xd473j · inputs/glob-star-dot-star · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/*.d.ts keys x.d.ts, and not x.ts
Why this is right

A 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.

t3wbjm · inputs/glob-double-extension · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/? keys a one-character name, and not a two-character one
Why this is right

? alone matches exactly one 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.

ndbzfc · inputs/glob-single-question-mark · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input g/[]a] keys the file named ]
Why this is right

A ] right after the opening bracket is a member of the class, not its end, as POSIX and gitignore read 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.

t4d0ji · inputs/glob-bracket-first-in-class · correctness
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 again
Why this is right

A tool that passes file names to git without -- and literal pathspecs hands git an option, a pathspec keyword or a glob. Git then answers about other files or none, and the edit replays a stale build. Each file is edited untracked, then again once committed, and each edit runs the task.

803i5b · inputs/file-names-git-could-read-as-options · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A file ignored through git’s core.excludesFile is not an input, and editing it replays
Why this is right

Git reads ignore rules from .gitignore files, .git/info/exclude and the file core.excludesFile names, often a user’s editor junk list. A tool that reads only .gitignore files keys what git ignores, and every editor swap file reruns the build. The edit replays.

o2c0u8 · inputs/file-ignored-by-core-excludesfile-is-not-an-input · efficiency
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 again
Why this is right

On a case-sensitive file system A.txt and a.txt are two files with their own bytes. A runner that folds case while listing or keying them keeps only one, and an edit to the other changes no key. The task then replays output built from the old a.txt. Linux checkouts hold such pairs, often by accident from a rename.

swrlic · inputs/case-twin-tracked-edit-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A new a.txt beside a committed A.txt runs the task again
Why this is right

A 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 a.txt for A.txt, sees nothing new and replays. The output then lacks the new file. On a case-sensitive disk the two names are as different as any others.

uo3odz · inputs/case-twin-untracked-added-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under core.ignorecase=true on Linux, a new a.txt beside a committed A.txt runs the task again
Why this is right

A .git copied from macOS keeps core.ignorecase=true, and git then takes a new a.txt for the tracked A.txt and lists nothing new. The disk still holds two files, and the task reads both. A runner that trusts git’s listing replays output that lacks the new file. What the task reads is on the disk, not in git’s config.

n6uy10 · inputs/case-twin-under-core-ignorecase-reruns · correctness
vx passesTurbo passesNx passes
✗

moon Step 4: did not run a#build

Nix passesVite Task passes
An input src/A.txt does not key src/a.txt
Why this is right

A literal input names one file, byte for byte. On a case-sensitive disk a.txt is another file the task never reads. A matcher that compares names without case keys it anyway, and every edit to it reruns the task for nothing. The narrow input is the user’s way of saying what matters.

km9mat · inputs/literal-name-not-its-case-twin · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input src/** does not key files under a sibling Src directory
Why this is right

Directory names are matched as exactly as file names. Src is another directory, maybe old code or a vendored copy, and the task does not read it. A walker that folds case pulls it into the key, so edits there rerun the task. On a case-sensitive file system the user can rely on the case they wrote.

dzwlim · inputs/directory-case-twin-not-keyed · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input src/[A-Z].txt keys B.txt, and not b.txt
Why this is right

A range in a class covers the characters between its ends and no others. [A-Z] is the upper-case letters, so b.txt lies outside it. A matcher that compiles classes case-insensitively keys files the user left out, rerunning the task on their edits. The upper-case file must still key the task.

fpq1md · inputs/glob-class-range-case-sensitive · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit to a committed file whose name is in decomposed Unicode runs the task again
Why this is right

A name like é.txt can be stored as one code point or as e plus a combining accent, and files copied from macOS often carry the second form. Linux keeps the bytes as written. A runner that normalises names while listing them then looks up a path that does not exist and drops the file from the key. Its edits replay the old output.

433yjq · inputs/nfd-name-tracked-edit-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A new untracked file whose name is in decomposed Unicode runs the task again
Why this is right

Git lists an untracked name by its bytes, and a decomposed é is three bytes where the composed one is two. A runner that normalises what git prints, or quotes it and fails to unquote it, never finds the file. The new input then changes no key. The task must rerun and see it.

eciwtu · inputs/nfd-name-untracked-added-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
With composed and decomposed é.txt side by side, an edit to either runs the task again
Why this is right

On Linux the two spellings of é.txt are two files with their own content. A runner that normalises names folds them into one entry, so an edit to the one it dropped changes no key. The task reads both and its output depends on both. Each must key it.

8780bs · inputs/nfc-and-nfd-twins-each-keyed · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A literal input spelled in decomposed Unicode keys the file of that spelling
Why this is right

A 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.

ys1imj · inputs/nfd-literal-input · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input src/?.txt keys a file named with one emoji
Why this is right

? matches exactly one character, and an emoji outside the Basic Multilingual Plane is one character of four bytes. A matcher that steps through UTF-16 code units sees two halves and fails the match. The file then drops out of the key, and its edits replay a stale result. Emoji names are rare but legal.

sidbv6 · inputs/glob-question-mark-astral-character · correctness
vx passesTurbo 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 😁.txt
Why this is right

A 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.

ewtect · inputs/glob-class-astral-character · correctness
vx passesTurbo 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 name
Why this is right

In an ignore file a line starting with # is a comment, but an input pattern is not an ignore file. Emacs lock files and route files often begin with #. A runner that passes inputs through gitignore-style parsing drops this one, and its edits replay. The pattern names a file and must key it.

muzytq · inputs/hash-leading-name-literal · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit to src/!x.txt under an input src/** runs the task again
Why this is right

A file may begin with !; only a pattern starting with ! is a negation. A runner that turns the files it found back into patterns, or prints and re-reads them, takes this name for a negation and loses it. Its edits then replay output built from the old bytes. File names are data, not syntax.

iajd27 · inputs/bang-leading-name-under-glob · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit to a file whose name ends in a space runs the task again
Why this is right

A 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.

e2lshi · inputs/trailing-space-name-under-glob · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit to a file whose name starts with a space runs the task again
Why this is right

Git 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.

pujpo6 · inputs/leading-space-name-under-glob · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A new untracked file whose name ends in a space runs the task again
Why this is right

Untracked 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.

e96ttz · inputs/trailing-space-name-untracked-added · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input src/a.txt does not key a file named src/aXtxt
Why this is right

In a glob a . is a dot. A matcher that builds a regular expression without escaping it lets the dot match any character. Files the user never named then key the task, and their edits rerun it. A literal file input must match only itself.

9refhu · inputs/glob-dot-is-literal · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input src/a+.txt keys a+.txt, and not aa.txt
Why this is right

Outside extended globs + is a plain character. A matcher that leaks it into a regular expression reads a+ as one or more a, keying aa.txt too. That reruns the task on files it does not read. The named file must still key it.

i15jdb · inputs/glob-plus-is-literal · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An input src/$id^.txt keys the file with $ and ^ in its name
Why this is right

Route files such as $id.tsx are common, and ^ is a legal name character. In a glob both are plain characters, but in a regular expression they anchor the match, so a leaked pattern matches nothing. The file then drops out of the key. Its edits must run the task.

c63xx6 · inputs/glob-dollar-caret-literal · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit to an input with a 250-character name runs the task again
Why this is right

File 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.

cv8uv4 · inputs/long-file-name · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit forty directories deep under src/** runs the task again
Why this is right

** matches any number of directories, with no depth limit. A walker that caps its recursion stops short and silently leaves deep files out. Their edits then replay a stale result. Generated trees and nested fixtures can be that deep.

fo131z · inputs/deep-path-under-globstar · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Deleting an empty input file runs the task again
Why this is right

An 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 .nojekyll are empty by design. Removing one must run the task.

vtxchu · inputs/empty-file-deleted-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Deleting one of two inputs with the same content runs the task again
Why this is right

Two 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.

kfcbe6 · inputs/one-of-two-identical-files-deleted-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Adding a copy of an input under a new name runs the task again
Why this is right

A 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.

hc1z6s · inputs/identical-copy-added-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
With no line-ending rule, turning LF into CRLF runs the task again
Why this is right

Without a text attribute or core.autocrlf, git stores bytes as written, and so does the task read them. A runner that normalises line endings before hashing, as some do to agree across platforms, keys both forms the same. The output, which copies the bytes, would then replay with the old endings. Different bytes are different inputs here.

0umefn · inputs/lf-to-crlf-without-attributes-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
After staging an edit and undoing it on disk, the build holds the bytes on disk
Why this is right

The 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.

v7v9ll · inputs/staged-edit-undone-builds-disk-bytes · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A new file staged and then deleted from disk is no input
Why this is right

After git add and rm, the index lists a file the disk no longer holds. The task cannot read it. A runner that walks the index tries to hash a missing file and fails the run, or keys bytes the task never saw. The run must pass with output built from the files on disk.

26upae · inputs/staged-new-file-gone-from-disk · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A file removed with git rm and written again with new bytes runs the task again
Why this is right

After git rm the file is gone from the index, and writing it again makes it untracked with new content. A runner that reads the deletion from the index and never looks for an untracked file of that name keys the file as absent, or as its old blob. The task reads the new bytes. It must run again.

gmhfuq · inputs/staged-deletion-recreated-with-new-bytes · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Committing an edit and undoing the commit with git reset --soft lets the build replay
Why this is right

git reset --soft moves HEAD back but keeps the edit staged and on disk. The bytes the task reads are those it was last built from. A runner that keys by HEAD’s tree sees a change and rebuilds for nothing. The disk is unchanged, so the stored result is right.

1gkn92 · inputs/committed-then-reset-soft-keys-disk · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit a git clean filter strips from the blob still runs the task again
Why this is right

A 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 git status unchanged. The task reads the file on disk, stripped part included. A runner that keys clean files by their blob replays output built from the old bytes. The key must follow what the task reads.

lp3jr1 · inputs/clean-filter-hidden-edit-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under the ident attribute, an edit inside $Id: … $ runs the task again
Why this is right

The ident attribute collapses $Id: … $ back to $Id$ when git hashes a file, so an edit inside it leaves the blob unchanged and git calls the file clean. The task reads the full text on disk. A runner keying clean files by blob replays output with the old text. What git stores is not what the task read.

3u45f8 · inputs/ident-attribute-hidden-edit-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under status.showUntrackedFiles=no, a new input file runs the task again
Why this is right

Large repos set status.showUntrackedFiles=no to speed up git status, and plain git status then lists no untracked file. The new file is still on disk and the task reads it. A runner that asks status for untracked files without overriding the setting misses it and replays. A user’s status preference must not change what keys a task.

a0za0p · inputs/new-file-under-show-untracked-files-no · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under status.showUntrackedFiles=normal, a file in a new directory runs the task again
Why this is right

With normal, git lists a new directory as one entry, not the files inside it. A runner that keys the listed entry as if it were a file finds nothing to hash, or hashes the directory name only. Later edits inside then change no key. The files under the new directory are inputs, each with its bytes.

ymk5au · inputs/new-dir-under-show-untracked-files-normal · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Replacing an input directory with a file of the same name runs the task again
Why this is right

The 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.

taqt62 · inputs/directory-replaced-by-file-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Moving an input into a new subdirectory with the same name runs the task again
Why this is right

A move changes the path while the bytes stay. A runner that keys only file names, not their directories, keys src/a.txt and src/sub/a.txt alike. A task whose output depends on where files sit then replays the old layout. The path is part of each input.

w6hiry · inputs/file-moved-into-new-subdirectory-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A negation !src/*.gen.txt does not take back src/deep/x.gen.txt
Why this is right

A single * stays within one directory, in a negation as anywhere. !src/*.gen.txt takes back generated files at the top of src only. A runner that matches negations at any depth drops the deeper file, and its edits replay stale output. Only ** reaches down.

vz4xkj · inputs/negation-single-star-keeps-deeper · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A negation !src/**/*.snap takes back snapshots at every depth
Why this is right

** in a negation reaches every level below it, including none. Snapshot files are written by the tests, not read by the build. A runner that applies the negation only at one depth keys the rest, and every snapshot update reruns the build. The user excluded them all.

gcjyc1 · inputs/negation-globstar-extension-every-depth · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A negation !src/gen/** leaves src/gen2 keyed
Why this is right

A negation of src/gen/** takes back the gen directory, whose name ends at the slash. A runner that tests negations with a string prefix also drops gen2, generated and the like. Their edits then replay stale output. Path segments are compared whole.

6wqovs · inputs/negation-prefix-sibling-directory-still-keyed · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A negation !src/**/.* takes back dotfiles and keeps the rest keyed
Why this is right

Editor and tool state such as .DS_Store or .eslintcache lands beside sources, and users exclude it with a dot pattern. .* names files starting with a dot. A runner whose negation never matches dotfiles keys them anyway and reruns on every editor save. Ordinary files must still key the task.

pwj9lv · inputs/negation-of-dotfiles · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A negation !src/[0-9]*.txt takes back files starting with a digit only
Why this is right

A class in a negation narrows it the same way as in a positive pattern. [0-9]*.txt names files starting with a digit, such as numbered migrations a task does not read. A runner that ignores the class keys them, or takes back too much. One must replay and the other run.

avfsvs · inputs/negation-of-class · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Deleting a file a negation takes back lets the build replay
Why this is right

A 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.

ct1e07 · inputs/negated-file-deleted-replays · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A new untracked file that a negation takes back lets the build replay
Why this is right

New 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.

nvdnv0 · inputs/negated-untracked-file-added-replays · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A new file in a new directory under a negated tree lets the build replay
Why this is right

Git 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 !src/fixtures/** would then rerun the task. The negation takes the whole tree back, new parts included.

9493hp · inputs/negated-directory-new-file-replays · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A root input .*rc keys a dotfile at the workspace root
Why this is right

Tool configs at the root, .prettierrc or .babelrc, are dotfiles, and a root input names them with a dot pattern. A walker that skips dotfiles at the root matches nothing. Their edits then replay output formatted under the old config. A pattern that starts with a dot must match dotfiles.

whxvvo · inputs/root-input-dotfile-glob · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A root input {a,b}.cfg keys both root files
Why this is right

A 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 b.cfg then change no key. Every alternative must key the task.

m0pljt · inputs/root-input-brace · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Deleting a file a root input glob matched runs the task again
Why this is right

A 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.

90qvhf · inputs/root-input-deleted-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A root input naming a file in the task’s own project keys it beyond the project inputs
Why this is right

A 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.

zgm86f · inputs/root-input-into-own-project-beyond-inputs · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
With two key commands, a change in what the second prints runs the task again
Why this is right

Each 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.

jcmsj6 · inputs/runtime-second-command-change-reruns · correctness
vx passes
–

Turbo: N/A Turborepo inputs are files and variables, never a command’s output.

Nx passesmoon 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 again
Why this is right

Two answers glued together without a separator read the same for a+bc and ab+c. The task sees two different values and builds two different outputs. A runner that concatenates answers before hashing replays the first output for the second state. Each answer must be keyed apart.

pdbkhj · inputs/runtime-answers-not-glued · correctness
vx passes
–

Turbo: N/A Turborepo inputs are files and variables, never a command’s output.

Nx passesmoon 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 replayed
Why this is right

A 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 b declares a command whose answer stays the same. It must replay.

a4a49j · inputs/runtime-other-task-replays · efficiency
vx passes
–

Turbo: N/A Turborepo inputs are files and variables, never a command’s output.

Nx passesmoon 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 again
Why this is right

A 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.

1tds5n · inputs/runtime-large-answer-tail-change · correctness
vx passes
–

Turbo: N/A Turborepo inputs are files and variables, never a command’s output.

Nx passesmoon 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 again
Why this is right

A 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.

jn7u54 · inputs/runtime-dependency-answer-cascades · correctness
vx passes
–

Turbo: N/A Turborepo inputs are files and variables, never a command’s output.

Nx passesmoon 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 replay
Why this is right

Git cannot re-include a file whose parent directory is excluded, so gen/ followed by !gen/keep.txt still ignores keep.txt. Git never lists it, and a user sees it ignored in git status. A runner with its own ignore matcher applies the negation and keys the file, rerunning on edits nothing tracks. The runner should agree with git.

zyxawy · inputs/gitignore-directory-rule-blocks-reinclusion · efficiency
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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 input
Why this is right

gen/* excludes the files in gen, not the directory, so !gen/keep.txt brings that file back. It is committed and the task reads it. A runner that treats gen/* like gen/ drops the file from the key, and its edits replay. One character in the rule decides.

5s7v07 · inputs/gitignore-star-rule-allows-reinclusion · correctness
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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.txt
Why this is right

A rule with a slash in the middle is anchored to the directory of its .gitignore, so deep/x.txt in src/.gitignore ignores src/deep/x.txt and nothing else. src/more/deep/x.txt is an input. A runner that matches the rule at any depth drops it from the key, and its edits replay. Only rules without a slash float.

kww9pp · inputs/gitignore-middle-slash-rule-is-anchored · correctness
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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.txt
Why this is right

A leading slash anchors a rule to its .gitignore’s directory. /x.txt in src/.gitignore ignores src/x.txt only, and src/d/x.txt is an input the task reads. A runner that drops the slash and floats the rule leaves that file out of the key. Its edits then replay.

l56vsg · inputs/gitignore-leading-slash-rule-is-anchored · correctness
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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.log
Why this is right

Git strips trailing spaces from ignore rules, so x.log ignores x.log, and the stray space is a common editor slip. Git never lists the file. A runner reading the rule byte for byte looks for a name ending in a space, keys x.log, and reruns on every log write. It should ignore what git ignores.

qedd61 · inputs/gitignore-rule-trailing-space-ignored · efficiency
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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 #lock
Why this is right

In .gitignore # starts a comment, so a file starting with # is ignored by writing \#. Editors leave such lock files beside sources. A runner with its own parser that keeps the backslash matches nothing and keys the lock file, rerunning on every save. Git ignores it, so it is no input.

mv3ra8 · inputs/gitignore-escaped-hash-rule · efficiency
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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 !scratch
Why this is right

A rule starting with ! is a negation, so a file starting with ! is ignored by writing \!. Git then never lists it. A runner with its own parser that reads the rule as a negation, or keeps the backslash, keys the file and reruns on its edits. Git ignores it, so it is no input.

8xyqdh · inputs/gitignore-escaped-bang-rule · efficiency
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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 input
Why this is right

A trailing slash makes a rule match only directories, so cache/ ignores a cache directory and not a file called cache. Git lists that file, and the task reads it. A runner whose matcher drops the slash ignores the file too, and its edits replay. The slash is the whole point of the rule.

50xumr · inputs/gitignore-directory-only-rule-spares-file · correctness
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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 input
Why this is right

A ** between slashes in an ignore rule matches any run of directories, and the rule is anchored where it sits. So a/**/t.log ignores a/x/y/t.log but not b/t.log. A matcher that floats the rule ignores the second, whose edits then replay; one that reads ** as one level keys the first. Both must follow git.

tpnz7x · inputs/gitignore-globstar-middle-rule · correctness
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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 input
Why this is right

Ignore rules take bracket classes like globs do. [ab].log ignores a.log and b.log only. A hand-written matcher that takes the brackets literally keys a.log, and one that over-matches drops c.log, whose edits then replay. Git’s answer is the one to follow.

r0i3pk · inputs/gitignore-class-rule · correctness
vx passes
✗

Turbo Step 3: ran a#build, expected it replayed or left out

Nx passesmoon 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 input
Why this is right

Ignore 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.

cb8zf6 · inputs/gitignore-rule-ignores-tracked-file-still-keyed · correctness
vx passesTurbo passes
✗

Nx Step 5: did not run a#build

moon passesNix passesVite Task passes
With ident set in .git/info/attributes, an edit inside $Id: … $ runs the task again
Why this is right

Attributes can live in .git/info/attributes, outside the tree, and git applies them like a committed .gitattributes. There ident makes an edit inside $Id: … $ leave the blob unchanged and the file clean in git’s eyes. A runner that looks for attributes only in the tree trusts the blob and replays. The task reads the edited text.

ab49o0 · inputs/ident-under-info-attributes-hidden-edit-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Making an input read-only for others (0644 to 0640) lets the build replay
Why this is right

Git 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.

xw6dbn · inputs/read-permission-change-replays · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Undoing an edit to a dependency replays both it and its dependant from the first run
Why this is right

Once 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.

uyefzk · inputs/dependency-edit-reverted-replays-chain · efficiency
vx passesTurbo passesNx passesmoon passesNix 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 same
Why this is right

Keys 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.

5k5wh9 · inputs/grandparent-edit-reruns-through-unchanged-output · correctness
vx passesTurbo passesNx passesmoon passesNix passes
✗

Vite Task Step 3: did not run app#build

A root input .config/** keys files under a dot directory at the root
Why this is right

Shared 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.

y7yd9a · inputs/root-input-dot-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A file in a new untracked directory under a root input glob runs the task again
Why this is right

Git 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.

ygcv32 · inputs/root-input-untracked-new-directory · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A Unix socket left under an input glob neither hangs nor fails the run
Why this is right

Dev 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.

madb7m · inputs/unix-socket-under-glob-no-hang · correctness
vx passesTurbo passesNx passesmoon 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 task
Why this is right

settings.txt in the project and settings.txt at the root are two files that happen to share a name. A task that reads both has to rerun when either changes. A tool that merges inputs by their written path keeps one of them, and an edit to the other replays a build of the old config.

nid1aq · inputs/project-and-root-file-of-one-name-both-key · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A run over files whose timestamps changed leaves git’s index file as it was
Why this is right

Asking git which files changed refreshes and rewrites .git/index when timestamps moved, as a checkout or a formatter leaves them. A runner that does that while the user runs git commit or a rebase in another terminal races them for index.lock, and their command fails. Reading the tree should leave the repository’s own files untouched.

fowuue · inputs/run-leaves-the-git-index-alone · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A command that keys a task gives the same answer when the run starts inside the project
Why this is right

A key command such as cat tools/version.txt is written against the workspace root. Run from wherever the user stands, it fails or reads another file, and the same task gets a different key in each folder. The run from inside the project should replay what the root run stored.

o3wt0s · inputs/runtime-command-runs-at-the-root-from-any-folder · correctness
vx passes
–

Turbo: N/A Turborepo inputs are files and variables, never a command’s output.

Nx passesmoon 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 task
Why this is right

A source tarball or a Docker build context often keeps its .gitignore but drops .git. The ignore file still says what is local state: logs, caches, editor files. A tool that keys every file once git is missing reruns the task whenever a log under its sources changes.

rlzwtc · inputs/gitignored-file-without-git-replays · efficiency
–

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 it
Why this is right

When 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.

t1c3nw · inputs/single-package-keys-only-declared-files · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit in a library the root depends on reruns the root’s task and leaves an unrelated member replayed
Why this is right

Turborepo puts the root’s workspace dependencies in the global hash, so touching util misses the build of every package. another reads nothing of util, and nothing in any manifest links them. Rebuilding it costs a full task for an edit it cannot see. util and the root rebuild; another replays.

56tc6q · inputs/root-dependency-edit-spares-unrelated-member · efficiency
vx passes
✗

Turbo Step 3: ran another#build, expected it replayed or left out

Nx passesmoon passesNix 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 task
Why this is right

b waits on its dependencies’ builds, but shared has none, so nothing is built there. Turborepo once gave that empty step a key of its own, global inputs included, so a root file only a reads reached b through it. An empty step reads nothing and keys nothing. Changing the file reruns a and replays b.

pxp94t · inputs/root-input-not-keyed-through-taskless-dependency · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
In a one-package repository, an edit in a fixture folder that holds its own package.json runs the task reading it
Why this is right

Test 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.

h0f2c0 · inputs/single-package-fixture-folder-with-manifest-keys-the-task · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
With a hundred new files named with spaces under the inputs, editing one of them runs the task again
Why this is right

Git 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.

wp6a0s · inputs/hundred-untracked-names-with-spaces-each-keyed · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
An edit in a member the root package does not depend on replays the root’s task that waits on its dependencies
Why this is right

The root’s build waits on util, so a change in util must reach it. another is in the repository but not in the root’s dependencies, so its edits cannot change what the root reads. A tool that folds every member into the root’s key rebuilds the root on each member edit. another rebuilds; the root and util replay.

ge421d · inputs/member-edit-outside-root-dependencies-replays-root-task · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Under a gitignored input directory, a deleted file, a moved folder and a deleted folder each run the task again
Why this is right

Generated 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.

2subvx · inputs/gitignored-directory-deletes-and-moves · correctness
vx passesTurbo 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.snap
Why this is right

An empty brace alternative means the name with nothing added, so src/data{,.snap} names a file and its snapshot. A tool that drops the empty alternative keys only the snapshot, and an edit to the data file replays stale output. A file the pattern does not name must still be left out.

viretk · inputs/brace-with-empty-alternative · correctness
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 key
Why this is right

A leading ! only says the pattern excludes; the @ of a package scope and the + in a name after it are still plain characters. A tool that reads them as pattern syntax once a ! is in front excludes nothing, so writes to a cache folder the user left out rerun the task every time. Files outside the excluded folders must still key it.

gfge0k · inputs/negation-through-scope-and-plus-directories · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A task with ten input globs reruns when only the tenth matches the edit
Why this is right

Every 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.

6j8csr · inputs/tenth-of-ten-globs-keys · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
A negation !**/snap/** takes back a folder of that name at the top and deep down
Why this is right

A leading ** lets a negation reach the folder wherever it sits, top level included. A tool that needs at least one folder before snap keys the top one; one that anchors it keys the deep one. Edits under either replay, and an edit to a source beside them runs the task again.

ru07ue · inputs/negated-folder-at-any-depth · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
In a workspace that is not a git repository, a new file under the inputs runs the task again
Why this is right

Without 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.

fx7gqt · inputs/without-git-new-file-reruns · correctness
–

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 passesNx passes
✗

moon Step 3: ran a#build, expected it replayed or left out

Nix passesVite Task passes
In a workspace that is not a git repository, deleting an input runs the task again
Why this is right

A 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.

oyvcb2 · inputs/without-git-deleted-file-reruns · correctness
–

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 passesNx passesmoon passesNix passesVite Task passes
In a workspace that is not a git repository, making an input executable runs the task again
Why this is right

Git 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.

fzsfth · inputs/without-git-executable-bit-reruns · correctness
–

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 passesNix 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 again
Why this is right

A 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.

9kmq37 · inputs/without-git-link-retarget-reruns · correctness
–

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 passesNx passesmoon passesNix 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 task
Why this is right

Without 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.

kyaesm · inputs/without-git-edit-outside-inputs-replays · efficiency
–

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 passesNx passes
✗

moon Step 4: ran a#build, expected it replayed or left out

Nix passesVite Task passes
In a workspace that is not a git repository, renaming an input runs the task again
Why this is right

A 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.

vho7gb · inputs/without-git-renamed-file-reruns · correctness
–

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 passesNx passesmoon passesNix passesVite Task passes
In a workspace that is not a git repository, editing a dotfile under the inputs runs the task again
Why this is right

Git 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 .babelrc or .env.defaults under the sources then never keys the task. The edit replays a build made with the old config.

id1uuy · inputs/without-git-dotfile-edit-reruns · correctness
–

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 passesNx passesmoon passesNix passesVite Task passes
In a workspace that is not a git repository, a new empty folder under the inputs replays the task
Why this is right

Input 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.

xe1k66 · inputs/without-git-empty-directory-added-replays · efficiency
–

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 passesNx passes
✗

moon Step 4: ran a#build, expected it replayed or left out

Nix passesVite Task passes
Swapping an input for a link to a file of the same bytes runs the task again, and swapping it back replays
Why this is right

Git, 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.

kqa26r · inputs/file-swapped-for-link-to-same-bytes-reruns · correctness
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 task
Why this is right

Deduplicating 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.

btx01a · inputs/file-swapped-for-hard-link-to-equal-file-replays · efficiency
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
In a workspace that is not a git repository, a folder link back into the inputs neither hangs nor fails the run
Why this is right

With 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.

77n599 · inputs/without-git-link-cycle-no-hang · correctness
–

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 passesNx passesmoon passesNix passesVite 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 again
Why this is right

A vendored project often keeps its own .git inside a workspace that has none. A tool that finds that repository and keys the project by what it tracks misses a file nobody committed there. The new file is still an input, and the task must run again.

xlhpdy · inputs/without-git-project-holding-its-own-repository · correctness
–

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 passesNx passesmoon passesNix passesVite Task passes
In a workspace that is not a git repository, editing a workspace-level file a task declares runs it again
Why this is right

A shared config at the workspace root, such as a tsconfig.base.json, keys every task that names it. Without git the tool must find and read it outside the project’s own folder. A tool that walks only the project when git is missing replays builds made with the old config.

3uykw6 · inputs/without-git-root-input-edit-reruns · correctness
–

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 passesNx passesmoon passesNix passesVite Task passes
An input src/a}{b.txt keys the file of that name
Why this is right

A } before any { closes nothing, and a { with no } after it opens nothing, so both are plain characters of the name. File names carry braces from templating tools and copied paths. A runner that rejects the pattern, or reads it as a broken alternative that matches nothing, either fails the run or replays a build of an edited file.

p9cdpl · inputs/close-brace-before-open-brace-is-a-name · correctness
vx passes
✗

Turbo Step 1: exited 1, expected success

✗

Nx Step 1: exited 1, expected success

moon passesNix passes
✗

Vite Task Step 1: exited 1, expected success

Editing the patch applied to an installed package, and installing, runs the task reading it again
Why this is right

A 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.

mvt2lr · inputs/dependency-patch-edit-reruns-its-reader · correctness
vx passesTurbo 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 other
Why this is right

The 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.

ukw7h9 · inputs/removed-dependency-reruns-only-its-project · correctness
vx passesTurbo 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 again
Why this is right

Agents and scripts keep extra worktrees in a folder like .worktrees/ that the main checkout ignores. Inside the worktree, that folder is outside the workspace, so it says nothing about which files are inputs. A tool that matches its ignores against the full path drops every input there and replays the old output after an edit. The edited input is built.

65jl8j · inputs/worktree-under-an-ignored-folder-edit-reruns · correctness
vx passesTurbo passesNx passesmoon passesNix passesVite Task passes
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.