Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

40ignition-ostree: avoid jq try-catch #2797

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Jan 12, 2024

There seems to be a bug in jq 1.7 where try .foo catch "" | ascii_downcase now fails.

It seems like jq implements short-circuiting boolean operators, so we can rework this to instead just use a simpler and operator.

BZ issue: https://bugzilla.redhat.com/show_bug.cgi?id=2258285

Reported-by: Gursewak Mangat gursmangat@gmail.com

There seems to be a bug in jq 1.7 where `try .foo catch "" |
ascii_downcase` now fails.

It seems like jq implements short-circuiting boolean operators, so we
can rework this to instead just use a simpler `and` operator.

Reported-by: Gursewak Mangat <gursmangat@gmail.com>
@jlebon
Copy link
Member Author

jlebon commented Jan 12, 2024

@gursewak1997 If you open an issue against jq, I can crosslink it here.

@gursewak1997 gursewak1997 enabled auto-merge (rebase) January 12, 2024 20:38
@dustymabe dustymabe disabled auto-merge January 12, 2024 21:10
@dustymabe
Copy link
Member

disabled auto-merge since there is a bump-lockfile job running right now. If this merges it will cause all of that work to be thrown away. Will merge after that finishes.

@dustymabe dustymabe merged commit 074a9d8 into coreos:testing-devel Jan 13, 2024
@gursewak1997
Copy link
Member

gursewak1997 commented Jan 25, 2024

Just a quick update: This was rather a issue in how in jq-1.6 try catches the error of ascii_downcase but it should not.
For more details refer to: jqlang/jq#3016
Also closed the https://bugzilla.redhat.com/show_bug.cgi?id=2258285

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants