Skip to content

Promote: keep jq stderr in jq_lacks#356

Merged
ptr727 merged 1 commit into
mainfrom
develop
Jun 29, 2026
Merged

Promote: keep jq stderr in jq_lacks#356
ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Promotes the develop consolidation to main: jq_lacks discards only stdout (drops 2>&1) so a real jq error (exit 2/3/5) prints its diagnostic while the no-output/false cases (exit 1/4) stay silent. Comment reflowed to canonical wrapping. Converges repo-config/configure.sh byte-for-byte with the other repos.

No-bypass promotion via merge commit.

Discard only stdout in `jq_lacks` (drop `2>&1`) and reflow the comment
to the canonical wrapping. jq's exit 0/1/4 cases produce no stderr so
normal audit runs stay silent, but a real jq error (exit 2/3/5) now
prints its diagnostic instead of failing silently.

Converges `repo-config/configure.sh` byte-for-byte with the other three
repos, where Copilot surfaced this. Verified: `bash -n`, shellcheck.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 29, 2026 05:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Promotes the develop-side behavior of repo-config/configure.sh to main by adjusting jq_lacks so jq diagnostics are no longer suppressed on real jq failures, while keeping the “no match / false / null” cases silent. This supports the repo-configuration audit/apply tooling by making genuine jq errors actionable without increasing noise for expected “not present” checks.

Changes:

  • Update jq_lacks to discard only stdout (keep jq stderr visible) while preserving existing exit-code handling.
  • Reflow the jq_lacks comment to the canonical wrapping and document the stdout/stderr intent.

@ptr727 ptr727 merged commit 9f7b8f5 into main Jun 29, 2026
10 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.

2 participants