Skip to content

Replace go-yaml/yaml with goccy/go-yaml #2298

Open
@neiser

Description

@neiser

Please describe your feature request.
yq increasingly suffers from the fact that the underlying go-yaml/yaml library is rather unmaintained and lacks some important functionality for some yq use cases.

Describe the solution you'd like
yq could migrate to a new kid in town, the goccy/go-yaml.
According to its README, the library aims to replace the go-yaml/yaml library and has some really nice additional features, such as:

Reversible transformation without using the AST for YAML that includes Anchors, Aliases, and Comments

This feature is in particular interesting for yq -i use cases, which unfortunately might modify whitespace due to limitations in the go-yaml/yaml library.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions