Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wrote a new yaml grepping tool this past weekend and just realized thanks to this that I have a whole new can of worms to keep in mind. Ugh.

Turns out it does report values at their targets (which is desirable) but doesn't know or indicate that they're anchors (undesirable).

Also tested something with yq - if you tell it to edit a node that is actually from a yaml anchor, it updates the original anchor without warning you that that's what you're doing. Yikes.

(For anyone who wants to test it: https://pypi.org/project/yamlgrep/)



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: