-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
YAML with anchors and aliases is broken #120
Comments
Hi @systemmonkey42, thanks for taking the time to open the issue. Sadly, I won't be able to look into it this month as I'm a little bit overloaded, maybe one of the other maintainers can jump in. If you can't wait and have coding skills and some time, feel free to make a pull request. |
I've been running some tests to find the root cause for this and looks like it's coming from ruyaml. This is the only related issue I could find: pycontribs/ruyaml#50. If I manage to fix it I'll send a PR to ruyaml. |
It was already fixed 😃 Only that they are not uploading the latest versions to pypi (I created an issue for this). I upgraded the dependency and it works (build is failing due to issues with other dependencies but will try to fix them ASAP): |
Awesome! thanks @muripic :) |
Until pycontribs/ruyaml#58 is resolved, I'll reopen this issue because we can't If you need that feature, please change the "ruyaml" line in the "ruyaml @ git+git://github.com/pycontribs/[email protected]#egg=ruyaml", # noqa E800 and run |
Until pycontribs/ruyaml#58 is resolved, the issue #120 will remain because we can't hardcode dependencies from github in the `setup.py` because Pypi doesn't allow them. If you need that feature, please change the "ruyaml" line in the `setup.py` with: ```python "ruyaml @ git+git://github.com/pycontribs/[email protected]#egg=ruyaml", # noqa E800 ``` and run `make install`.
It's merged already |
Description
Valid YAML file containing anchors and aliases/merge points is broken by yamlfix
Current behavior
Source yaml: This is a snippet from docker-compose.yml, trimmed to focus on the issue
Result:
Desired behavior
In this specific example, during YAML processing, the "volumes" map no longer contains all the volumes once yamlfix has processed the file.
Side node: Using a different method to aggregate the anchors produces correct results
Environment
The text was updated successfully, but these errors were encountered: