You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Dropping here in case someone else stumbles upon this)
attempting to use duplicate anchors feature will result in a yaml.composer.ComposerError: found duplicate anchor error. While this is a YAML 1.2 feature, pyyaml does not yet support parsing duplicate anchors.
override-anchor branch of yaml/pyyaml has a PR that supports the duplicate anchors parsing feature. This can be installed by simply installing the pip from git:
FAQ: "why would you want to use duplicate anchors?"
In my use case, I'm utilizing stage includes. This requires a new field "id:" on the stage that I'd really like it to be the same as "name:" without having to repeat myself.
(Dropping here in case someone else stumbles upon this)
attempting to use duplicate anchors feature will result in a
yaml.composer.ComposerError: found duplicate anchor
error. While this is a YAML 1.2 feature, pyyaml does not yet support parsing duplicate anchors.override-anchor branch of yaml/pyyaml has a PR that supports the duplicate anchors parsing feature. This can be installed by simply installing the pip from git:
diff from master branch only contains the PR, so it should be save everywhere else.
References:
Debian Bug Report:
python-yaml: YAML loader complains about non-unique anchors
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515634
pyyaml PR:
Support overriding anchors #394
yaml/pyyaml#394
pyyaml diff with master:
https://github.com/yaml/pyyaml/compare/override-anchor
The text was updated successfully, but these errors were encountered: