Skip to content

[for yq] Null YAML document throws error #711

@mikefarah

Description

@mikefarah

Describe the bug
When given a yaml document of null goccy/yaml borks.

To Reproduce

https://go.dev/play/p/ZlT7pIhuQfd

Expected behavior
Should returns a ast.NullType node

Screenshots
If applicable, add screenshots to help explain your problem.

Version Variables

  • Go version: [e.g. 1.21 ]
  • go-yaml's Version: [e.g. v1.11.1 ]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions