-
-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Discussion?
No
Describe the bug
On multidoc yaml input dasel drops all elements after first empty doc.
To Reproduce
- Create yaml
first: nonempty
---
---
second: nonempty
---
- Run
cat md.yaml | dasel -r yaml -w yaml
- Get
first: nonempty
Expected behavior
$ cat md.yaml | yq
first: nonempty
---
---
second: nonempty
---
Screenshots
N/A
Desktop:
- OS: Debian 12
- Version: dasel version v2.8.1
Additional context
- yq is mikefarah/yq
- Multidoc yaml with empty docs in the middle can be seen in the wild on helm charts when entire template file is skipped due to some condition.
cat md.yaml | yq -o json | dasel -r json -w yaml
crashes into panic, which is preferable to silently skipping payload- v3 panics with
runtime error: invalid memory address or nil pointer dereference
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working