Skip to content

Yaml anchor insertion is not correctly recognised, and falls back to error in default branch #2083

@MetalArend

Description

@MetalArend

Description

YAML anchors are not correctly recognised, so they end up in the default statement, and error out.

Version

3.41.0

Operating system

Ubuntu

Experiments Enabled

No response

Example Taskfile

version: '3'


tasks:
  foo:
    vars: &anchor
      FOO: true
  bar:
    vars:
      <<: *anchor
      BAR: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions