Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MetalArend opened this issue Feb 22, 2025 · 1 comment
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@MetalArend
Copy link

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
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Feb 22, 2025
@MetalArend
Copy link
Author

There seems to be a difference when adding vars: *anchor as a oneliner, and using <<: *anchor next to other vars. The latter is triggering the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs triage Waiting to be triaged by a maintainer.
Projects
None yet
Development

No branches or pull requests

2 participants