go-task / task

A task runner / simpler Make alternative written in Go
https://taskfile.dev
MIT License
11.01k stars 584 forks source link

file-global silent:true not respected when in included file #1319

Open ambis opened 1 year ago

ambis commented 1 year ago
# taskfile.yml
version: "3"
includes:
  silent: taskfile.silent.yml
# taskfile.silent.yml
version: "3"
silent: true # <- look here 
tasks:
  me-not-silent:
    desc: "hello"
    cmds:
      - echo hello
$ task silent:me-not-silent
task: [silent:me-not-silent] echo hello # <- not very silent :(
hello

When silent set to the included job directly, then it works as expected.

vmaerten commented 3 months ago

hi @ambis As a workaround we can specify silent: true in the task itself :

# taskfile.silent.yml
version: "3"

tasks:
  me-not-silent:
    silent: true
    desc: "hello"
    cmds:
      - echo hello