Skip to content

fix(install): the installers refuse an archive they can't verify, and install.sh installs whatever GitHub's JSON looks like - #1028

Merged
David-Noble-at-work merged 2 commits into
developfrom
fix/1002-installers-install-an-archive
Oct 4, 2026
Merged

David-Noble-at-work merged 2 commits into
developfrom
fix/1002-installers-install-an-archive

Conversation

@David-Noble-at-work

@David-Noble-at-work David-Noble-at-work commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Lane 23 of #949, with #1008 (ruled 2026-10-02: "fix it in this lane").

  • Nothing unverified is installed (The installers don't refuse an archive they can't verify: install.ps1 warns and installs, and install.sh claims a check it skipped or stops without saying why #1002). install.ps1 installed when the checksums file or the archive's line was missing; install.sh printed "Checksum verified" when it had no SHA-256 tool, and stopped with no message when a release lacked a piece. Both now refuse before extracting, naming what is missing.
  • Exact names. The line is found by exact name (listedChecksum's rule), and each download is checked against the name GitHub served, because GitHub's download host matches names regardless of case.
  • One-line JSON (install.sh can't install when GitHub sends the release as one line of JSON: every asset resolves to the release's own id #1008). install.sh read asset ids line by line, so on the one-line form GitHub sometimes sends, nothing could install. Both installers now download by public link; the API is asked only for the newest tag, or, for a release selected with DEVLORE_VERSION, only after a 404, to say whether the release or the file is missing. install.sh uses curl alone.
  • The same behavior and the same sentences in both installers, checked by one list of 16 cases in both suites (ruled 2026-10-02: "I insist on your recommendation. I want it.").
  • A spent API limit says when it resets and to run again: "GitHub's API limit for this address is used up. It resets at 18:42 (in 23 minutes); run the installer again after that. Setting GH_TOKEN raises the limit."
  • A seventh Installers leg runs install.sh on macOS with MacPorts' GNU tools first on PATH.

Also: the guide's by-hand checksum steps match by exact name; #947's plan names #1002 to #1005 where it deferred them.

  • Plan — docs/plans/fix/1002-installers-install-an-archive.md. It stays active: its last box is the live install after the merge.

Resolves #1002
Resolves #1008

Test plan

  • scripts/Test-InstallScript.sh: every check passes under bash 5.3 and macOS's bash 3.2, every case on both JSON layouts; against today's install.sh the refusal cases fail
  • scripts/Test-InstallScript.ps1: every check passes under PowerShell 7; against today's install.ps1 every case fails
  • make test; make vet-all and make lint-all on linux, darwin and windows; star lint shell; the PowerShell gate, 0 findings
  • The Installers workflow, all seven legs, Windows PowerShell 5.1 among them, and the MacPorts leg for the first time
  • After the merge: an install on this machine through the published one-liner prints "Checksum verified"

Time

Marker UTC Elapsed
opened (first commit) 2026-10-01T21:20:02Z —
submitted (PR opened) 2026-10-04T06:00:59Z 56.7 h after opened
merged 2026-10-04T06:15:09Z 0.2 h after submitted; 56.9 h in all

Computed by the algorithm of noblefactor-ops#188 at merge.

…an't verify

Both installers fail before extracting, naming what is missing, when the
checksums file, the archive's line or (install.sh) a SHA-256 tool is
missing; the line is found by exact name, as self upgrade finds it;
install.sh never stops without saying why, and never reports a check it
didn't make. Tests stand in for GitHub from outside the installers.
Resolves #1002 when done; lane 23 of #949. The owner's rulings of
2026-10-01 are recorded in the plan.

Claude-Session: https://claude.ai/code/session_01DuNfZFyfxBoD9pdaiDEMrY
… install.sh installs whatever GitHub's JSON looks like

#1002: install.ps1 installed when the checksums file or the archive's
line was missing; install.sh claimed "Checksum verified" when it had no
SHA-256 tool, and stopped with no message when a release lacked a
piece. Both matched the line by pattern. Now both refuse, before
extracting, naming what is missing; find the line by exact name, as
self upgrade does; download the checksums file before the archive; and
take only the file they asked for, checking the name GitHub served.

#1008: install.sh found each asset's id by reading GitHub's JSON line
by line, so on the one-line form GitHub sometimes sends, every asset
resolved to the release's own id and nothing could install. Both
installers now download by public link, asking the API only for the
newest tag, or, for a selected release, only after a 404, to say
whether the release or the file is missing. install.sh uses curl alone.

A spent API limit says when it resets and to run again. Both test
suites run one list of 16 cases, on both JSON layouts for install.sh,
and a new Installers leg runs install.sh on macOS with MacPorts' GNU
tools first on PATH. The guide's by-hand checksum steps match by exact
name. #947's plan names #1002 to #1005 where it deferred them.

Resolves #1002
Resolves #1008

Claude-Session: https://claude.ai/code/session_01DuNfZFyfxBoD9pdaiDEMrY
@David-Noble-at-work
David-Noble-at-work merged commit f30c209 into develop Oct 4, 2026
20 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the fix/1002-installers-install-an-archive branch October 4, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant