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.

task --initName defaultBare task runs cmds

One command, two quiet outcomes

defaultName bare task runs
0Cmd lines when up to date
3Check methods: checksum, timestamp, none

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

FormBare taskSilent skip risk
defaultRuns when no name is givenLow if cmds have no sources/generates/status
First key in YAMLDoes not run automaticallyN/A—must call by name
sources + generatesNamed task onlyHigh—prints up to date, skips cmds
statusNamed task onlyHigh when all checks exit 0
method: noneOn that taskDisables file-based skipping
task --forceAny named taskRuns cmds even when up to date

A default task that actually runs

  1. 01
    Install Task

    macOS: brew install go-task. Other platforms: installers on taskfile.dev. Confirm with task --version.

  2. 02
    task --init

    Creates Taskfile.yml with version: '3'. Task searches parent directories if the file is not in the cwd.

  3. 03
    Add a default smoke task

    Name it default. Use plain cmds for the check you want every time. Do not attach sources, generates, or status to that smoke task.

  4. 04
    task --list, then bare task

    You should see echo output. If a build task skips, use task --force build or change inputs. task --dry previews 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
task

Task runs default by 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.

Start the picture