- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 634
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
The program crashes with the error "panic: runtime error: index out of range" #1184
Comments
It shouldn't stack error like that (which is a bug) - but the issue is that it isn't valid yaml. The merge anchor If you have:
then it works |
Thank you, I suspected that my YAML isn't valid. I was confused that several online validators accepted my YAML. Thank you for the excellent program! |
Happy to help :) thanks for your kind words
…________________________________
From: Alexander Sokolov ***@***.***>
Sent: Saturday, April 16, 2022 3:51:18 PM
To: mikefarah/yq ***@***.***>
Cc: Mike Farah ***@***.***>; Comment ***@***.***>
Subject: Re: [mikefarah/yq] The program crashes with the error "panic: runtime error: index out of range" (Issue #1184)
Thank you, I suspected that my YAML isn't valid. I was confused that several online validators accepted my YAML.
Thank you for the excellent program!
—
Reply to this email directly, view it on GitHub<#1184 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAIZHNKTNSA5OL5H3I5Y46DVFJINNANCNFSM5TQT64SQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Accidentally closed - I need to handle the panic error into a more friendly message |
Fixed in 4.25.1 |
Describe the bug
The program crashes with the error "panic: runtime error: index out of range"
Version of yq: 4.25.5
Operating system: linux
Installed via: binary release
Input Yaml
data1.yml:
Command
The command you ran:
Actual behavior
Expected behavior
FROM ubuntu:18.04
The text was updated successfully, but these errors were encountered: