Skip to content
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 path '$' fails with failed to find path ( $ ) #428

Open
wjam opened this issue Feb 19, 2024 · 1 comment
Open

YaML path '$' fails with failed to find path ( $ ) #428

wjam opened this issue Feb 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wjam
Copy link

wjam commented Feb 19, 2024

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
@wjam wjam added the bug Something isn't working label Feb 19, 2024
@nieomylnieja
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants