Skip to content

jq: bump up gojq to fix printing empty arrays#119

Merged
mislav merged 2 commits intocli:trunkfrom
itchyny:jq-fix-empty-array
Jun 2, 2023
Merged

jq: bump up gojq to fix printing empty arrays#119
mislav merged 2 commits intocli:trunkfrom
itchyny:jq-fix-empty-array

Conversation

@itchyny
Copy link
Contributor

@itchyny itchyny commented Jun 1, 2023

Summary

This PR fixes cli/cli#7001. Not just unique filter, but also flatten, group_by, unique_by, nth, indices, path.

History

There was an attempt to fix this issue at #101, but the behavior was rollbacked at c180335. This is essentially an unfriendly behavior of the gojq library, so I fixed gojq at itchyny/gojq@96c4843 with testing many array filters. I bumped up the version with a simple test updates to prevent future regression.

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

Thank you!

@mislav mislav enabled auto-merge (squash) June 2, 2023 11:39
@mislav mislav merged commit 4227258 into cli:trunk Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jq unique produces null from empty arrays

2 participants