-
Notifications
You must be signed in to change notification settings - Fork 11
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
Anchor syntax incorrectly formatted #43
Comments
@xnox thanks! any chance you could add an example? Like steps to reproduce and how that differs from what we want it to look like? |
Running yam on following YAML
generates invalid yaml to:
|
Thanks @shyim, that's helpful. 🙏 This is most likely a bug in the underlying YAML library, Any ideas for shorter-term fixes are welcome, too. |
it's difference of parsing expanded yaml versus unexpanded. Note that because it is references, one has to take special care when parsing them "literary" or not. It does have support for anchor types, and how to print them. I haven't looked at yam code if it checks for anchors or not. None theless, I think @stormqueen1990 mentioned one of the better maintained forks of yam.v3..... was it a hashicorp fork? or something else? |
The one I know about is https://github.com/kubernetes-sigs/yaml, though I'm unsure if it would fix the issue at hand 🤔 |
yaml files with anchors are not correctly formatted.
The text was updated successfully, but these errors were encountered: