Skip to content

Keep jq stderr in jq_lacks (converge with Docker repos)#221

Merged
ptr727 merged 1 commit into
developfrom
fix/jq-lacks-stderr
Jun 29, 2026
Merged

Keep jq stderr in jq_lacks (converge with Docker repos)#221
ptr727 merged 1 commit into
developfrom
fix/jq-lacks-stderr

Conversation

@ptr727

@ptr727 ptr727 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Discard only stdout in jq_lacks (drop 2>&1). 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 with the Docker repos (PlexCleaner/VSCode-Server), where Copilot surfaced this. Verified: bash -n, shellcheck, and the lacks/match cases still behave with no spurious stderr.

Discard only stdout (drop 2>&1); jq's exit 0/1/4 cases produce no stderr so normal runs stay
silent, but a real jq error (2/3/5) now prints its message. Converges with the Docker repos.

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:05

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

Adjusts the repo-config/configure.sh audit helper jq_lacks so jq error diagnostics are no longer suppressed, improving observability during repository configuration validation (while keeping normal “match/lacks” runs quiet).

Changes:

  • Update jq_lacks to discard only stdout (remove 2>&1) so jq stderr is preserved for real jq errors.
  • Update the surrounding comment to document the intended stdout/stderr behavior.

@ptr727
ptr727 merged commit 08cc42f into develop Jun 29, 2026
11 checks passed
@ptr727
ptr727 deleted the fix/jq-lacks-stderr branch June 29, 2026 05:08
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