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 When I use yq, it removes the --- marker of my yaml document
---
Version of yq: 4.30.5 Operating system: mac Installed via: homebrew
Input Yaml
example.yaml:
#! some ytt comments #@ a = b --- kind: First value: 1 --- kind: Second value: 1
Command
❯ yq e ' select(documentIndex == 0 ) ' example.yaml
Actual behavior
#! some ytt comments #@ a = b kind: First value: 1
Expected behavior
#! some ytt comments #@ a = b --- kind: First value: 1
Additional context Sorry to bring this back up again, I'd gone through #351 and #1056 before reporting.
Strangely, if I don't have that empty line before the --- and input document looks like this:
Then it behaves how I'd expect:
❯ yq e ' select(documentIndex == 0 ) ' /tmp/example.yaml #! some ytt comments #@ a = b --- kind: First value: 1
The text was updated successfully, but these errors were encountered:
Found the bug, will fix in the next release
Sorry, something went wrong.
Include blank new lines in leading header preprocessing #1462
83c5e1b
Fixed in v4.30.6
No branches or pull requests
Describe the bug
When I use yq, it removes the
---
marker of my yaml documentVersion of yq: 4.30.5
Operating system: mac
Installed via: homebrew
Input Yaml
example.yaml:
Command
Actual behavior
Expected behavior
Additional context
Sorry to bring this back up again, I'd gone through #351 and #1056 before reporting.
Strangely, if I don't have that empty line before the
---
and input document looks like this:Then it behaves how I'd expect:
The text was updated successfully, but these errors were encountered: