Repository navigation
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 intoOct 4, 2026
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lane 23 of #949, with #1008 (ruled 2026-10-02: "fix it in this lane").
install.ps1installed when the checksums file or the archive's line was missing;install.shprinted "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.listedChecksum's rule), and each download is checked against the name GitHub served, because GitHub's download host matches names regardless of case.install.shread 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 withDEVLORE_VERSION, only after a 404, to say whether the release or the file is missing.install.shusescurlalone.install.shon macOS with MacPorts' GNU tools first onPATH.Also: the guide's by-hand checksum steps match by exact name; #947's plan names #1002 to #1005 where it deferred them.
docs/plans/fix/1002-installers-install-an-archive.md. It staysactive: 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'sinstall.shthe refusal cases failscripts/Test-InstallScript.ps1: every check passes under PowerShell 7; against today'sinstall.ps1every case failsmake test;make vet-allandmake lint-allon linux, darwin and windows;star lint shell; the PowerShell gate, 0 findingsTime
Computed by the algorithm of noblefactor-ops#188 at merge.