Skip to content

Fix YQ test with empty input document#4539

Merged
AkihiroSuda merged 1 commit intolima-vm:masterfrom
jandubois:bats-yq
Jan 27, 2026
Merged

Fix YQ test with empty input document#4539
AkihiroSuda merged 1 commit intolima-vm:masterfrom
jandubois:bats-yq

Conversation

@jandubois
Copy link
Member

The test is using <<<"" to specify an empty input document. It is however not really empty, but contains a single newline character.

yq versions before 4.50.1 would filter out this newline, but now it is being preserved. This commit changes the test to use a truly empty input document, as was originally intended.

This PR fixes the BATS failure in #4460. It will still be blocked from merging because of the HCL licensing issue.

The test is using <<<"" to specify an empty input document. It is
however not really empty, but contains a single newline character.

yq versions before 4.50.1 would filter out this newline, but now
it is being preserved. This commit changes the test to use a truly
empty input document, as was originally intended.

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
@jandubois jandubois added this to the v2.1.0 milestone Jan 20, 2026
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 3730bc9 into lima-vm:master Jan 27, 2026
63 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments