-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
ruyaml usage; Removing needed quotes #248
Comments
Hey @martinhoyer, thanks for taking the time to open an issue. We use Regarding your issue at hand I see two solutions:
If you go for the second, I think it would be nice if you could add the link on the upstream bug report so that once its fixed we can remove that piece of code |
Hey @lyz-code, thanks for the reply! last time I checked there wasn't really any 'golden bullet' for yaml parsing in Python. Ruyaml being drop-in replacement to ruamel.yaml, maybe the switch to ruamel.yaml, which is being maintained (from what I can tell) and is released under MIT license could be relatively pain-less? |
I lived the whole migration from ruamel.yaml to ruyaml, and one of the reasons was that the first one is maintained by a benevolent dictator. I hate those kind of projects, and prefer the community maintained ones. I'm not saying no to migrating back, but there must be real benefits (like this issue being solved or other ones with the |
100% understandable. I've also encountered some issues with ruamel.yaml. |
I don't know the project so I can't give a based judgment. I've skimmed through their docs and it looks ok, but until we do a deep analysis of the pros and cos we won't know for sure |
Hello, I can confirm the issue for the "removal of needed quote", for instance in module https://docs.ansible.com/ansible/latest/collections/containers/podman/podman_container_module.html The volume use a syntax of "host mp:container mp" like :
But the fix remove the quote like:
Which then cause errors similar to:
|
Question
Hi,
looking at ruyaml repo, it looks like there is not much development happening for past couple of years. Do you plan to keep using it in this project?
Might not be related to the parser, but I've hit for example this issue:
yamlfix will re-format the file to:
..which unfortunately removes the strings from the mac-address-like string.
When I then want to use the yaml file in program relying on ruamel.yaml:
Running
yamlfmt
adds the quotes back.The text was updated successfully, but these errors were encountered: