3 ms·
This article seems to have a major factual error. YAML does support “Repetition” with anchors. Am I missing something?
by netfl0 7y ago
This article seems to have a major factual error. YAML does support “Repetition” with anchors. Am I missing something?
- shorez 7y agoAnchors are fairly limited: - they are bound to a single file. This won’t help you when trying to maintain multiple similar sets of Config - anchors do not support patching. If you need to change a nested key, you can’t do so without it affecting all other nested keys as well
- emptysea 7y agoAnchors also don't work with a list of elements. For instance, if we want to share steps in a YAML based CI config we can't if they are a list.
- tyingq 7y agoI found that odd too. Typical examples like https://confluence.atlassian.com/bitbucket/yaml-anchors-960154027.html https://confluence.atlassian.com/bitbucket/yaml-anchors-9601... are pretty easy to map to their example of why they need repetition.