Skip to content

Multiple matches with wildcards #2072

@MetalArend

Description

@MetalArend
  1. I think that adding this restriction is fine for now. It keeps things simple. However, I can definitely see a world where someone with a complex setup asks for the current behaviour as it would allow you to do something like this:

    version: 3
    
    tasks:
      foo-*-*:
        ..
      foo-*:
        ..

    This allows Task to do something different depending on if the user does task foo-bar vs task foo-bar-baz. This would not be possible if we errored when multiple tasks match since task-bar-baz matches both tasks in the file.

    Happy to add the error for now and revisit this later though.

Originally posted by @pd93 in #1489 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: wildcardsChanges related to wildcard matching

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions