Skip to content
New issue

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

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

Merged
merged 2 commits into from
Jun 2, 2023

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
6 checks passed
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