YaML path '$' fails with `failed to find path ( $ )`
wjam opened this issue · comments
Describe the bug
Attempting to build a YaML path that points to the root of the YaML document (so just $
) fails. The errors in the stack of errors are failed to read node
, failed to filter from ast.File
, failed to find path ( $ )
, and node not found
.
To Reproduce
Example failure - https://go.dev/play/p/UHfjmW_lYLf
Expected behavior
A path is created that points to the root of the YaML document. Alternatively, the YaML path should be treated as invalid when attempting to create it.
Version Variables
- Go version: 1.22
- go-yaml's Version: v1.11.3
There's an easy enough fix for that: nieomylnieja@0e9c52f.
I'm not sure if this project is actively maintained anymore though, I'm using a fork myself.