Skip to content

Included Taskfile watch: true not working #1763

@Firesphere

Description

@Firesphere

I have a root Taskfile, that includes a Taskfile from a folder named watch
For simplicity, my tasks:

Taskfile.yml

version: "3"
interval: 500ms
dotenv: ['.env.local', '.env.dev']
includes:
  watch:
    taskfile: ./watch
    aliases: [w]

watch/Taskfile.yml

version: "3"

tasks:
  build:*:
    watch: true
    sources:
      - '${PROJECTS}/*-bin/*.go'
    cmds:
      - echo "hello world"

This watcher works if I put it in the root of my Taskfile set. But the subfolder task does not watch, for reasons unclear to me, I couldn't find any documentation about it, and I would expect that the $(PROJECTS), which is a full absolute path in .env.local, should/would "just work" ™️?

  • Task version: 3.38.0
  • Operating system: MacOS Sonoma 14.6.1
  • Experiments enabled: No

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: watcherChanges related to the Taskfile watcher.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions