Skip to content

Selector failing to select a child element in a TOML file #97

Answered by TomWright
MrDionysus asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @MrDionysus,

I'm glad you're finding dasel useful.

I've taken a look and the issue is in your TOML file.

I see you have [[runners]] - notice the double square brackets. This causes runners to be an array containing a map with your expected values.

You can either use this selector: .runners.[0].docker.disable_cache - example on playground

Or change [[runners]] to [runners] and use this selector: .runners.docker.disable_cache - example on playground

I've also made a note to improve these error messages in the future.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@TomWright
Comment options

Answer selected by TomWright
Comment options

You must be logged in to vote
1 reply
@TomWright
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants