scripts: Parse update feed with python3 if jq is missing #10

Merged
linus merged 1 commits from scripts/jq-python3-fallback into master 2026-09-03 00:18:31 -05:00
Collaborator

What

Harden scripts/update.sh so the stay-current path works without jq.

  • Parse Cursor's linux-x64 feed with python3 when jq is missing; fail loudly if curl/python3/sha256sum are missing.
  • Reject tiny or non-.deb downloads so a failed fetch cannot look like a successful bump.
  • Workflow still apt-get installs jq for the scheduled run; git push failure is a job failure with the manual path in the log.
  • README: jq optional on the manual path; cron still runs on master.

#7

Why

#8 merged the 0.36.0 bump and a jq-required updater. Jumpboxes may lack jq; the documented ./scripts/update.sh force path must still work.

Test

  • PATH without jq: note: jq not found; parsing update feed with python3 then Up to date at 0.36.0.
  • Earlier live run (pre-merge): bump 0.35.0 → 0.36.0 with python3 fallback, deb sha 948b4177667d9a03915c1aee497e7c5438705393da8083a6af0177288512d07e.
  • Actions push/tag already proven on this forge (run 1190); this PR does not change that. Manual path remains documented.

Leftover from #7 after #8; issue already closed by that merge — no Closes #7 here.

## What Harden `scripts/update.sh` so the stay-current path works without `jq`. - Parse Cursor's linux-x64 feed with python3 when `jq` is missing; fail loudly if `curl`/`python3`/`sha256sum` are missing. - Reject tiny or non-`.deb` downloads so a failed fetch cannot look like a successful bump. - Workflow still `apt-get install`s `jq` for the scheduled run; `git push` failure is a job failure with the manual path in the log. - README: `jq` optional on the manual path; cron still runs on `master`. https://git.s1d3sw1ped.com/s1d3sw1ped/grok-bot-bin/issues/7 ## Why #8 merged the 0.36.0 bump and a jq-required updater. Jumpboxes may lack `jq`; the documented `./scripts/update.sh` force path must still work. ## Test - `PATH` without `jq`: `note: jq not found; parsing update feed with python3` then `Up to date at 0.36.0`. - Earlier live run (pre-merge): bump 0.35.0 → 0.36.0 with python3 fallback, deb sha `948b4177667d9a03915c1aee497e7c5438705393da8083a6af0177288512d07e`. - Actions push/tag already proven on this forge ([run 1190](https://git.s1d3sw1ped.com/s1d3sw1ped/grok-bot-bin/actions/runs/1190)); this PR does not change that. Manual path remains documented. Leftover from #7 after #8; issue already closed by that merge — no Closes #7 here.
linus changed target branch from develop to master 2026-09-03 00:18:31 -05:00
linus added 1 commit 2026-09-03 00:18:31 -05:00
Jumpboxes may lack jq; requiring it made the documented manual path
fail closed for the wrong reason. Keep python3 as the rewrite tool
and the feed parser fallback, and fail loudly when neither parser
nor curl/sha256sum is present. Reject tiny/non-deb downloads so a
failed fetch cannot look like a successful bump.
linus merged commit e1da61d7b7 into master 2026-09-03 00:18:31 -05:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: s1d3sw1ped/grok-bot-bin#10