-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
TOML nested array of tables with arrays breaks v4.35.1 #1758
Comments
We're encountering this too, in: When running |
Also seeing the issue with sub-tables, for example:
|
still relevant. Thank you for supporting TOML! |
Another potentially useful test case:
(this is from a Julia language Manifest.toml file which I was hoping to use |
Huh, it's interesting that |
Describe the bug
Hi! Thank you for making and maintaining yq; I happily use your tool daily and especially thanks for starting work on TOML support—see #1364!
Issue: Yq breaks when parsing TOML nested array of tables with arrays (LOL)—see https://toml.io/en/v1.0.0#array-of-tables. Workaround: You can parse TOML with https://github.com/pelletier/go-toml, then pipe JSON to yq.
Version of yq: v4.35.1,...,v4.42.1
Operating system: Mac and Linux
Installed via: Homebrew and Docker
Input TOML
data1.toml:
Command
The command you ran:
Actual behavior
Expected behavior
Additional context
I suspect this is a problem with yq because the tomljson can handle data1.toml like the following shell session illustrates:
Again, thank you for yq and for considering this sort of obtuse issue.
The text was updated successfully, but these errors were encountered: