Skip to content

encoding/yaml: replace yaml.v3 as it is archived and unmaintained #3880

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

Open
DavidGamba opened this issue Apr 7, 2025 · 1 comment
Open
Assignees
Labels
encoding FeatureRequest New feature or request

Comments

@DavidGamba
Copy link

DavidGamba commented Apr 7, 2025

Is your feature request related to a problem? Please describe.
The go-yaml/yaml library has been archived by the author.

Describe the solution you'd like
I would like a YAML library that allows us to address some of the issues with the current YAML library. In particular, I would like a library that has good handling of literal multiline strings so they are split around \n rather than quoted in a single very long line.

Describe alternatives you've considered
There are alternatives around, one that seems well maintained is:
goccy/go-yaml

Additional context
The Kubernetes team has a fork of ghodss/yaml https://github.com/kubernetes-sigs/yaml
Which includes a vendored/forked? copy of the goyaml.v3.

The yq project might consider a switch to goccy/go-yaml mikefarah/yq#2298

@DavidGamba DavidGamba added FeatureRequest New feature or request Triage Requires triage/attention labels Apr 7, 2025
@mvdan mvdan changed the title Replacement for go-yaml/yaml library since it has been archived encoding/yaml: replace yaml.v3 as it is archived and unmaintained Apr 8, 2025
@mvdan mvdan added encoding and removed Triage Requires triage/attention labels Apr 8, 2025
@mvdan mvdan self-assigned this Apr 14, 2025
@DavidGamba
Copy link
Author

This has been mentioned in the kubernetes-sings/yaml issues as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
encoding FeatureRequest New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants