Skip to content
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

Update YAML parser to be able to parse anchors and aliases #70

Closed
jsangmeister opened this issue Feb 7, 2024 · 0 comments · Fixed by #78
Closed

Update YAML parser to be able to parse anchors and aliases #70

jsangmeister opened this issue Feb 7, 2024 · 0 comments · Fixed by #78
Assignees
Labels
Milestone

Comments

@jsangmeister
Copy link
Contributor

According to go-yaml/yaml#298, the go-yaml package is not able to parse the anchor/alias syntax (which exists since 2009: https://yaml.org/)... Additionally, the project does seem to be supported anymore. The last commit is ~2 years old, and the fifth-oldest commit over 3 years. We could look into replacing the package alltogether, e.g. by https://github.com/goccy/go-yaml, which seems to be actively maintained (last release 2 weeks ago). Other, IMO worse alternatives include:

  • Forking the repo/hacking the functionality in some other way (overkill for this simple feature)
  • Preprocessing the yaml file to manually replace aliases with anchors (overkill and hacky)
  • Not using aliases and anchors (possible, but not really a satisfactory solution)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants