Skip to content

run: once does not work as expected with wildcards #2373

@ajeetdsouza

Description

@ajeetdsouza

Description

Say I set up a task like so:

run: once
tasks:
  deploy:all:
    deps:
      - deploy:redis
      - deploy:postgres

  deploy:*:
    cmd: echo "deploying {{ index .MATCH 0 }}"

Only one service (random) ends up deployed. The reason being that deploy:* is treated as a single task, and is only called once.

Version

3.41.0

Operating system

macOS 15.5

Experiments Enabled

No response

Example Taskfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: fingerprintingChanges related to checksums and caching.area: wildcardsChanges related to wildcard matching

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions