Skip to content

A task changed its own inputs

warning: @acme/ui#lint: it changed its own inputs, so its result isn't stored: packages/ui/src/button.tsx, packages/ui/src/menu.tsx
hint: Run the task that changes these files before the others, such as a formatter, or set cache = false for it in axle.toml.

The task changed files Git tracks, or files it read as inputs, while it ran. A formatter or a linter with automatic fixes does this. A stored result would describe files that no longer exist in that form, so Axle doesn’t store it. The run itself still passes.

If the task is meant to change files, such as format, run it on its own before the tasks that read those files, or turn the cache off for it:

[tasks.format]
cache = false

If it isn’t meant to, find out which step writes into tracked files, and make it write somewhere Git ignores, such as dist.