Bare task went quiet. Nothing ran.
Bare task runs default, not the first entry. Up-to-date checks can skip without running your cmds.
Type task with no name and Task runs the default task—not the first entry in the file. If the terminal goes quiet, up-to-date checks may have skipped every cmd. To put tasks and skip rules on one page, open sitdraw.
The stall is rarely install. It is mistaking no output for success when Task decided the work was already done.
One command, two quiet outcomes
Make looks at files
If a file matches the target name, make test can print is up to date and exit. That is a different runner; see the just note for command runners.
Task looks at fingerprints
sources and generates can skip cmds when inputs are unchanged. status skips when every check exits 0. Root run defaults to always—skipping comes from those fields, not from a missing default name.
What bare task runs
| Form | Bare task | Silent skip risk |
|---|---|---|
default | Runs when no name is given | Low if cmds have no sources/generates/status |
| First key in YAML | Does not run automatically | N/A—must call by name |
sources + generates | Named task only | High—prints up to date, skips cmds |
status | Named task only | High when all checks exit 0 |
method: none | On that task | Disables file-based skipping |
task --force | Any named task | Runs cmds even when up to date |
A default task that actually runs
- 01Install Task
macOS:
brew install go-task. Other platforms: installers ontaskfile.dev. Confirm withtask --version. - 02task --init
Creates
Taskfile.ymlwithversion: '3'. Task searches parent directories if the file is not in the cwd. - 03Add a default smoke task
Name it
default. Use plaincmdsfor the check you want every time. Do not attachsources,generates, orstatusto that smoke task. - 04task --list, then bare task
You should see echo output. If a build task skips, use
task --force buildor change inputs.task --drypreviews commands.
# Taskfile.yml — default runs on bare task
version: '3'
tasks:
default:
desc: Smoke check that always runs
cmds:
- echo 'this always runs'
build:
sources: ['main.go']
generates: ['app']
cmds:
- go build -o app main.go
task --list
taskTask runs
defaultby name. Fingerprinted tasks can finish without running a single cmd.
To keep task deps on one page, read the guide, then open a space from the start of the page.
Why did bare task print up to date?
You probably ran a fingerprinted task, or default has sources, generates, or passing status checks. Give the smoke check plain cmds, or use task --force on the named task.
Task says default not found?
Bare task requires a task named default. The first key in the YAML is not automatic. Add default: or call tasks by name.
How is this different from bare just?
just runs the first recipe or [default] as commands. task runs only the task named default, and can skip cmds when up-to-date checks pass.
Name what bare task will run
task --list should show default before you trust a quiet exit. Do not treat up to date as a passed test.