Skip to content

[for yq] Can't use alias as a key #712

@mikefarah

Description

@mikefarah

Describe the bug
Yaml spec (perhaps surprisingly?) allows you to use aliases in keys, the goccy/yaml parser doesn't seem to allow this

{a: &a cat, *a : b}

To Reproduce

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

Expected behavior
Tokeniser picks up AliasType as a Map key.

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 workingwaitingowner is waiting for a response

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions