mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
fix(publisher): require the jq and bash it uses; pin CI actions
From the Codex re-gate of the 0.3.3 fixes: NUL-separated discovery fields need jq 1.7 (--raw-output0) and bash 4.4 (mapfile -d); check both up front with a clear message instead of failing midway on older tools. ci.yml actions are pinned to commit SHAs like the release workflows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
This commit is contained in:
parent
304709f3ac
commit
9f714dfed2
2 changed files with 14 additions and 4 deletions
|
|
@ -126,6 +126,16 @@ if ! command -v jq >/dev/null 2>&1; then
|
|||
echo "jq is required for manifest/source metadata processing" >&2
|
||||
exit 1
|
||||
fi
|
||||
# NUL-separated discovery fields need jq 1.7 (--raw-output0) and bash 4.4
|
||||
# (mapfile -d); the packaged publisher provides both.
|
||||
if ! jq --raw-output0 -n '"x"' >/dev/null 2>&1; then
|
||||
echo "jq 1.7 or newer is required (for --raw-output0); found $(jq --version 2>&1)" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ((BASH_VERSINFO[0] < 4 || (BASH_VERSINFO[0] == 4 && BASH_VERSINFO[1] < 4))); then
|
||||
echo "bash 4.4 or newer is required (for mapfile -d); found ${BASH_VERSION}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! "$IDX_BIN" version >/dev/null 2>&1; then
|
||||
echo "failed to run idx binary: $IDX_BIN" >&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue