Thanks to visit codestin.com
Credit goes to github.com

Skip to content

task panics when a var is defined as {} #2416

@Anthony-Fiddes

Description

@Anthony-Fiddes

Description

Steps to reproduce:

  • Run task in a folder with the example task file
  • See many nil runtime errors from to gopkg.in/yaml.v3

I could see this being an unsupported syntax, but this task file actually used to work before on version 3.34.1, so I figured I'd report it.

Version

3.44.1

Operating system

Linux, confirmed on Ubuntu 24.04.3 LTS

Also observed on macOS (Sequoia 15.6.1)

Experiments Enabled

No response

Example Taskfile

version: '3'

vars:
  foo: {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions