We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
I'm using yq to parse Cargo.toml files. One of them has an empty dependencies table.
When supplying this file to yq, I get the following error
Version of yq: 4.40.5 Operating system: linux Installed via: binary
Input TOML
Concise toml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data1.yml:
[package] name = "appName" version = "0.1.0" edition = "2021" [dependencies]
Command
The command you ran:
yq '.package | has("version")' obscura-types/Cargo.toml
Actual behavior
Error: bad file 'Cargo.toml': error retrieving table [dependencies] value: %!w(<nil>)
Expected behavior
true
Additional context
Even if the TOML specifications don't allow empty tables, if rust/cargo supports it, then so should this tool, otherwise I'll use another one.
The text was updated successfully, but these errors were encountered:
Duplicate of #1924
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I'm using yq to parse Cargo.toml files. One of them has an empty dependencies table.
When supplying this file to yq, I get the following error
Version of yq: 4.40.5
Operating system: linux
Installed via: binary
Input TOML
Concise toml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data1.yml:
Command
The command you ran:
Actual behavior
Expected behavior
true
Additional context
Even if the TOML specifications don't allow empty tables, if rust/cargo supports it, then so should this tool, otherwise I'll use another one.
The text was updated successfully, but these errors were encountered: